[Dovecot] Using procmail to mark messages as read in dovecot
Steffen Kaiser
skdovecot at smail.inf.fh-brs.de
Tue Aug 20 15:44:12 EEST 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon, 19 Aug 2013, LuKreme wrote:
> On 19 Aug 2013, at 01:45 , Robert Schetterer <rs at sys4.de> wrote:
>> # File messages from a mailing list I never get round to reading,
>> # and mark them as read so I don't feel guilty.
>> if header :contains ["From"] "mailinglist at example.com" {
>> setflag "\\Seen";
>> fileinto "FolderName/MailboxName";
>> stop;
>> }
>
> I am assuming that sieve acts as a LDA like procmail, so it's an either/or? I have a *lot* of procmail recipes I've written over the last 20 years or so.
you could mangle the flags in the filename yourself:
append :2, unless a : is present already
append S for seen
move from new to cur filename =~ s!/new/!/cur/!
The flags following the "," _should_ be sorted, but Dovecot does not rely
on it, IMHO.
Oh, websearch found:
http://www.dovecot.org/list/dovecot/2009-January/036297.html
Then there is
doveadm flags add -u user '\Seen' mailbox XYZ header message-id ABC
or something like that.
- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUhNknF3r2wJMiz2NAQK0wgf/ZeBLntrGpYlBmZaDF+iaKSFDI05NgR1o
FRidp2FB+NU4x7Q8qxePk3fvSq801ba/qsNpViCngEEJnQhP+Tb+JMtzMMHwVdwn
hgdfSu9TpJnCt7XikWlg7n83o/Gw/gUEJOhmk/gonQCrZYD9SUQJ+C02R18uLo3u
6NkbXNvh5pYbtiu1lziT7ZRTTAt+FIOxRoUTzTjPxwFJ4B5V79rnOrWpfsC83+QP
BbG+vbtcHJtqKwyqmFBWYSAQrTztlbsR2w4GGublsWHrhxPTRzgY+HAXX4QMjRiP
5BxH2u/G89IhczzxGPzD1nl8Hls0sBBjNG0nlLKIr2s3SDNLYFSGcw==
=FvKq
-----END PGP SIGNATURE-----
More information about the dovecot
mailing list