Re: Marking a message read when delivering to a Maildir
Petr Hendl <[email protected]> Sun, 8 Jun 2014 11:31:16 -0700 (PDT)
| Newsgroups | gmane.mail.maildrop |
|---|---|
| Message-ID | <[email protected]> |
I had the same problem. I found in general two hacks on the web:
1. moving the message from /new to /cur and renaming to some sort of *:2,;S
2. a patch of maildrop to use variable FLAGS and construct the filename of
the delivered email accordingly.
Both seem to be dirty hacks, which however most of the time works. I finally
resolved this by using a Sieve, where this is supported:
require ["fileinto", "imap4flags"];
if header :contains "x-spam-level" "*****"
{
fileinto :flags "\\Seen" "Spam";
}
(I already use Dovecot as my IMAP server, so I chose dovecot-lmtp as a
delivery agent with Sieve plugin.)
--
View this message in context: http://courier-mail-server.10983.n7.nabble.com/Marking-a-message-read-when-delivering-to-a-Maildir-tp20501p21533.html
Sent from the courier-maildrop mailing list archive at Nabble.com.
------------------------------------------------------------------------------
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