procmail
[Top] [All Lists]

Re: set status of mails in maildirs?

2007-07-30 10:56:16
In message 
<20070730175130(_dot_)GA1193(_at_)oberon(_dot_)njm(_dot_)f2s(_dot_)com>, N.J. 
Mann wrote:
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/

On seconds thoughts, as an example that is buggy.  A better example is:

:0
* regexp
{
  :0
  { TRAP='mv $LASTFOLDER ${LASTFOLDER}:2,F' }
  
  :0
  my-maildir-mail-box/
}


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