[imp] Re: filtering on new/recent IMAP messages
Jan Schneider
jan at horde.org
Mon Apr 18 09:54:14 PDT 2005
Zitat von Demetrios J Tsillas <jtsillas at appledor.net>:
> I'm trying to set up a filter (ingo) which will get applied whenever
> I log in. This filter looks for an user-defined X-DSPAM-Result header
> and moves a message to the Spam folder.
>
> The filter works as specified but has one undesireable property:
>
> If I move a message from the Spam folder to the Inbox (due to false
> positive spam detection), the filter will move it back to Spam the next
> time I log in.
>
> A little research into IMAP flags yielded a possible fix: the RECENT
> and NEW flags seem to tell an IMAP client that the message is new or
> has not been previously received. Some php code allowed me to add the
> flags to the pull down of standard headers and a little integration
> with ingo sets the appropriate fields in the IMAP search object.
> Unfortunately, this doesn't seem to have any effect. Could IMP be
> caching the IMAP flags; or (more likely) I am doing something wrong.
The RECENT flag is automatically reset by the IMAP server as soon as
you see (not read) the message, for example when searching the mailbox.
;)
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the imp
mailing list