procmail
[Top] [All Lists]

SOLVED >> Re: Possible solution >> Re: IMAP filtering, how to mark my own messages read

2005-10-10 18:43:22

On Oct 10, 2005, at 2:13 PM, Bart Schaefer wrote:

Something along these lines ought to do it; you might need to add a
little more fiddling around with the target of the "mv" to change
"new" to "cur", etc.

It turns out that this is taken care of by the server itself.

:0
* ^Sender: procmail-bounces(_at_)lists\(_dot_)RWTH-Aachen\(_dot_)DE
{
  :0
  * ^From:(_dot_)*lists(_at_)tntluoma\(_dot_)com
  { TRAP='mv $LASTFOLDER $LASTFOLDER,S' }

  :0
  $MAILDIR/.INBOX.Procmail/
}

Here's the brilliant part of this.... it can be done at the START of  
the .procmailrc and applied to ALL THE RECIPES WHICH FOLLOW!!!

Note that the syntax is slightly different than what Bart had:

:0
* ^From:(_dot_)*lists(_at_)tntluoma\(_dot_)com
{ TRAP='mv $LASTFOLDER $LASTFOLDER:2,S' }

Note the :2,S

I put that at the top of my .procmailrc and it seems to work.

TjL



____________________________________________________________
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