[Kde-pim] [PATCH] fix IMAP filtering (Bug 95064)

Thomas McGuire mcguire at kde.org
Tue Oct 28 17:07:49 GMT 2008


Hi,

On Dienstag 28 Oktober 2008 17:46:21 Ingo Klöcker wrote:
> On Tuesday 28 October 2008, Thomas McGuire wrote:
> > On Tuesday 28 October 2008 13:17:50 Ingo Klöcker wrote:
> > > KMail adds the header X-KMail-Filtered with some number as content
> > > to filtered messages. I guess this number is meant to be used for
> > > correlating the filtered messages with the messages the IMAP server
> > > reports as new. Maybe this mechanism has a bug or it is not fully
> > > implemented.
> >
> > X-KMail-Filtered is only used by the action scheduler, not by
> > KMFilterManager, I think it has nothing to do with detecting messages
> > as old or new. The action scheduler uses X-KMail-Filtered only to
> > remember the serial number of the original unfiltered message, I
> > think.
>
> Yeah, well, so, as I wrote above, it could (probably) be used for
> correlating the filtered uploaded messages with the unfiltered messages
> if the action scheduler is used.
>
> What I don't understand is why I have those headers in all received
> messages although the action scheduler shouldn't be used according to
> my kmailrc. ???

That is becuase of the following line:
if (ActionScheduler::isEnabled() ||
    kmkernel->filterMgr()->atLeastOneOnlineImapFolderTarget())

So when there is a filter with at least one filter with an online IMAP target 
folder, the action schduler is used...

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/20081028/6d7fd474/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