Discussion:
[maildropl] Maildrop flagging message when delivering
Milan Obuch
2007-07-04 22:35:43 UTC
Permalink
Hi,
I wanted for some time to mark message as important automatically when
delivering. After some time I tried to patch maildrop to do it for me. After
some work I created attached patch. It is simple, works as intended, but it
could be considered an ugly hack. If better method should be used, I would
like to know.
Usage is simple - in maildrop recipe set MFLAGS=F and be done with it.
Actually, per man maildir, flags may be composed from DFRS (for Draft,
Flagged, Replied-to, Seen), setting MFLAGS=FS will set both flags.
There is one small problem - sqwebmail does not display D nor F flag in any
way.
Regards,
Milan
--
This address is used only for mailing list response.
Do not send any personal messages to it, use milan in
address instead.
Petr Hendl
2014-06-08 17:39:24 UTC
Permalink
Post by Milan Obuch
I wanted for some time to mark message as important automatically when
delivering. After some time I tried to patch maildrop to do it for me. After
some work I created attached patch. It is simple, works as intended, but it
could be considered an ugly hack. If better method should be used, I would
like to know.
I wanted something very similar, marking some messages as seen. I finally
resolved this by using dovecot-lmtp as a delivery agent with Sieve plugin,
where this is supported:

require ["fileinto", "imap4flags"];

if header :contains "x-spam-level" "*****"
{
fileinto :flags "\\Seen" "Spam";
}

Loading...