[ingo] Ingo and Sieve IMAP flag Extension

Jan Schneider jan at horde.org
Wed Sep 24 01:33:35 PDT 2003

Zitat von Daniel Eckl <daniel.eckl at gmx.de>:

> Hi List!
> I have a problem regarding how ingo builds the sieve script for setting
> flags on messages.
> E.g. if I want a filtered message to be flagged as seen, then ingo build
> a
> script like:
> if address :all :comparator "i;ascii-casemap" :contains "To"
> "virusalert at domain.net"  {
>     addflag "\\Seen";
>     fileinto "Archiv.virusalert";
>     removeflag "\\Seen";
>     stop;
> }
> This "removeflag" seems to crash cyrus' lmtpd silently with error code 75
> but the message will be delivered nevertheless (!!!), so all mails which
> should be flagged will be delivered and flagged correctly _and_ stay as
> duplicate in the mailqueue. *brrrrr* I had spent a lot of time to figure
> this out...

Yeah, I experienced the same here too.

> Regarding to the corresponding Internet Draft
> I think this should work without an error, but I miss the sense in the
> action "removeflag". If I change the script and delete the "removeflag"
> action, all is working fine, lmtpd exits with status 0 and the messages
> will be flagged and moved and all you want.
> So what should the "removeflag" do exactly? Could we leave it out
> completely
> or, if this action has a sense, can we accomplish this in another way, so
> cyrus' lmtpd won't have problems?

The reason is that these flags are not single message flags but rather
"modes". That means that each message that is filed after "addflag" will
get this flag, not only the message handled in the if block.


http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft

More information about the ingo mailing list