procmail
[Top] [All Lists]

Re: set status of mails in maildirs?

2007-07-30 10:56:14
In message 
<20070730172912(_dot_)635b9e9c(_at_)roadrunner(_dot_)darksystem(_dot_)net>, 
Sebastian Krohn wrote:

I'm in the situation that i want to set some of the mails i save into
an maildir storage as 'read' for mails from a specific sender.

While the recipes are no problem I have not the slightest idea how i
could manage to set the 'read' status? Any ideas/pointers?

I use the following to set the "flagged" flag:

:0
* my-regexp-here
{ TRAP='mv $LASTFOLDER ${LASTFOLDER}:2,F' }

:0
my-maildir-mail-box/

It works like a charm.  To mark the mail as READ rather than "flagged"
the filename extension should be R rather than F, i.e.

{ TRAP='mv $LASTFOLDER ${LASTFOLDER}:2,R' }

but I haven't tested this.


Cheers,
       Nick.
-- 
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail