Re: Maildrop flagging message when delivering

Petr Hendl <[email protected]> Sun, 8 Jun 2014 17:39:24 +0000 (UTC)
Newsgroups gmane.mail.maildrop
Message-ID <[email protected]>
Milan Obuch <courier-maildrop <at> dino.sk> writes:

> 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";
}



------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech