Re: [Dovecot] Using procmail to mark messages as read in dovecot
On 20 Aug 2013, at 03:36 , Roel Wagenaar wrote: > DELIVER="/usr/lib/dovecot/dovecot-lda" > > :0 > * ^X-RSS-Feed: .*rss2email > | $DELIVER -m System.rss2email/ Ah, that is nice. I can run through my procmail recipes and then to dovecot-lda for sieve purposes. Can I pass a value to it for \\seen like dovecot-lda -o setflag="\\Seen"? -- The night is always old. He'd walked too often down dark streets in the secret hours and felt the night stretching away, and known in his blood that while days and kings and empires come and go, the night is always the same age, always aeons deep. Terrors unfolded in the velvet shadows and while the nature of the talons may change, the nature of the beast does not. --Jingo
Re: [Dovecot] Using procmail to mark messages as read in dovecot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 19 Aug 2013, LuKreme wrote: On 19 Aug 2013, at 01:45 , Robert Schetterer 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"] "mailingl...@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-
Re: [Dovecot] Using procmail to mark messages as read in dovecot
You wrote: > On 18 Aug 2013, at 19:46 , Benny Pedersen wrote: > > 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 > > > On 19 Aug 2013, at 01:45 , Robert Schetterer 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"] > > "mailingl...@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. > Not nesessarily, you can make procmail hand over the message to dovecot-lda if you like: Something lik this: DELIVER="/usr/lib/dovecot/dovecot-lda" :0 * ^X-RSS-Feed: .*rss2email | $DELIVER -m System.rss2email/ works flawless. This example is af course very symplified, I still use a nice procmail script to filter uot all my maillists befor handing over the rest to dovecot. -- Roel Wagenaar, Linux-User #469851 with the Linux Counter; http://linuxcounter.net/ Antw.: Omdat het de volgorde verstoord waarin mensen tekst lezen. Vraag: Waarom is top-posting een slechte gewoonte? Antw.: Top-posting. Vraag: Wat is het meest ergerlijke in e-mail? I used to have an open mind but my brains kept falling out.
Re: [Dovecot] Using procmail to mark messages as read in dovecot
On 18 Aug 2013, at 19:46 , Benny Pedersen wrote: > 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 On 19 Aug 2013, at 01:45 , Robert Schetterer 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"] "mailingl...@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. -- I get the feeling that some people's idea of heaven is an "I told you so" T-shirt - mmalc
Re: [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"] "mailingl...@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
Re: [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 / benf...@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- <>
Re: [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
[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