[Kde-pim] Filtering in KMail & moves to online IMAP folders

Thomas McGuire thomas.mcguire at gmx.net
Thu May 29 21:47:17 BST 2008


Hi,

On Thursday 29 May 2008 22:25:00 Till Adam wrote:
> On Thursday 29 May 2008 22:20:10 Thomas McGuire wrote:
>
> > Hmm, probably. I don't see an immediate reason in the code (and no
> > comments of course). I'm tempted to just enable it, it would be for
> > manually filtering only anyway (which does not use the action scheduler,
> > the message is moved in KMFilterMgr::process(), which seems OK to me (it
> > calls KMFolderImap::addMsg() in the end).
>
> addMsg() does not actually add the message to the folder, for online imap,
> that requires a folderjob, which is asynchronous. Since the main filter
> code cannot handle that, the action scheduler is needed. Enabling online
> IMAP folders as targets of filter move actions will lose mail, as only the
> envelope will be added locally, to the cache, but the mail will not
> actually be uploaded to the server.
It seems like KMFolderImap::addMsg() does create a job, it calls
imapJob = new ImapJob( msgList, QString(), ImapJob::tPutMessage, this );
I tried moving a mail with a big attachment, and that also worked fine (even 
though the attachment was loaded on demand).
What did I miss?

Regards,
Thomas


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20080529/90862e59/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list