LuKreme
2013-Aug-18 23:53 UTC
[Dovecot] Using procmail to mark messages as read in dovecot
So, I use procmail extensively, and I have for a long time, but marking messages as 'read' in a Maildir has always been a little wonky: TRAP='mv "$LASTFOLDER" "${LASTFOLDER}:2,S"' Since I've switched to dovecot, is there a way to mark a message on delivery as read or not new or seen? -- Clarke's Law: Sufficiently advanced technology is indistinguishable from magic
Benny Pedersen
2013-Aug-19 01:46 UTC
[Dovecot] Using procmail to mark messages as read in dovecot
LuKreme skrev den 2013-08-19 01:53:> Since I've switched to dovecot, is there a way to mark a message on > delivery as read or not new or seen?http://www.emaildiscussions.com/showthread.php?t=43128 it just require sieve
David Benfell
2013-Aug-19 04:20 UTC
[Dovecot] Using procmail to mark messages as read in dovecot
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/18/2013 04:53 PM, LuKreme wrote:> So, I use procmail extensively, and I have for a long time, but > marking messages as 'read' in a Maildir has always been a little > wonky: > > TRAP='mv "$LASTFOLDER" "${LASTFOLDER}:2,S"' > > Since I've switched to dovecot, is there a way to mark a message on > delivery as read or not new or seen? >Perhaps I misinterpret your command above. But it isn't the folder you want to rename, but the file containing the message itself. - -- David Benfell / benfell at parts-unknown.org Please see https://parts-unknown.org/node/2 for GnuPG information (or the attachment you don't understand) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJSEZz3AAoJEKrN0Ha7pkCOH+YQAIjpwbl80iBmsDG8txuF2pV2 A3JgYIUJOhVRR5Zp5jGD2LFWqLsOJBfaD14DMP190laC9RODGzmKzG2V58VzgRHR vZKfOONXErz79NeUzP8H8yboZg3KMvR8COBzwxxd0rEYL1XQ+hbBYFTCtjrtQP8j f3yR5b/07aiaD+qlIY/BVL/9OBjOjLy4QIvz+S+5wl7nMixDOLKJSFqC7JwWPJbS L/FXib58JYy/BRw2DwphTw6yaJDdIOFDszg1vwpj3axsiQceuA2NKY/XLhQ45iDX FLSlyH37TlUR6PbcoWGA4+5PBEhIPYJz84/d7j07Nk+PZDmG8eBzSKF6q/QVIqVm duWLQEIyPtYWmloD8uhQ2xZlH4Zkoec/XnW8dSZIBoeEg1dAgHJfzfQ67Yq7MXRQ bKx4CxIKCaE0Oh0OPD8XVrvE/OryKdQPt6vPTs/Dhk3HPuuUXsGWE0Ca3BbZR1dK 8Q0b3DgunsoNXbDqwpMIbaykOM93lR3WiAtgr1rTiqa7rpc/d77AX9TUOi+jQR44 HiM2Y/VrWuhwEI2ayhwmAgF6PIblZQbp3O4WdjHdJ/9mK4CCh0YOLNbev8CSlL70 038evfFopQ3LFRLNcGPMwCOrifztjfmEBXAl4YANi/BMoq5DaMe7UbdFelKBN+xO gjuyPKoo0BNi8ujwI7wW =vNBz -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: benfell.vcf Type: text/x-vcard Size: 174 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20130818/0f329669/attachment.vcf>
Robert Schetterer
2013-Aug-19 07:45 UTC
[Dovecot] Using procmail to mark messages as read in dovecot
Am 19.08.2013 01:53, schrieb LuKreme:> So, I use procmail extensively, and I have for a long time, but marking messages as 'read' in a Maildir has always been a little wonky: > > TRAP='mv "$LASTFOLDER" "${LASTFOLDER}:2,S"' > > Since I've switched to dovecot, is there a way to mark a message on delivery as read or not new or seen? >perhaps this helps http://www.gyford.com/phil/writing/2010/07/02/sieve-filters.php # 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; } http://wiki.dovecot.org/LDA/Sieve#Flagging_or_Highlighting_your_mail http://tools.ietf.org/html/draft-ietf-sieve-imapflags-05 Best Regards MfG Robert Schetterer -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstra?e 15, 81669 M?nchen Sitz der Gesellschaft: M?nchen, Amtsgericht M?nchen: HRB 199263 Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein