[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] Filtering in KMail & moves to online IMAP folders
From:       Thomas McGuire <thomas.mcguire () gmx ! net>
Date:       2008-05-29 20:20:10
Message-ID: 200805292220.16862.thomas.mcguire () gmx ! net
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hi,

On Monday 26 May 2008 00:09:04 Ingo Klöcker wrote:
> On Sunday 25 May 2008, Thomas McGuire wrote:
> > I'm trying to figure out why filters which move a message to an
> > online IMAP folder in KMail does not work.
> >
> > It seems that in KMFilterActionMove::process(), moving to online
> > folders is explicitly disabled when the action scheduler is not used.
> > The comment says "The old filtering system does not support online
> > IMAP targets".
> >
> > - Is it correct that the action scheduler is actually never used? Why?
>
> In KMail 1.9.9 it is used for filtering online IMAP.
Ah right, in trunk as well:
if (ActiononScheduler::isEnabled() ||
    kmkernel->filterMgr()->atLeastOneOnlineImapFolderTarget())
in KMAcctImap::postProcessNewMail().
isEnabled() returns false for me, so that only gets enabled when moving 
messages to online IMAP folders.

> > - Is it dangerous to enable moving to online IMAP folders
> > unconditionally? If yes, why? And why does the comment claim that "the
> > old filtering system" does not support that?
>
> I don't remember the details, but I think there is a reason why the old
> filtering system does not allow moving to online IMAP folders.
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).

Regards,
Thomas

["signature.asc" (application/pgp-signature)]

_______________________________________________
KDE PIM mailing list kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic