procmail
[Top] [All Lists]

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

2005-10-10 11:22:58
On 10/10/05, Timothy Luoma <lists(_at_)tntluoma(_dot_)com> wrote:

:0
* ^Sender: procmail-bounces(_at_)lists\(_dot_)RWTH-Aachen\(_dot_)DE
{

     # if message is NOT from me, just file it as normal
     :0
     * ! ^From:(_dot_)*lists(_at_)tntluoma\(_dot_)com
     $MAILDIR/.INBOX.Procmail/

     # get exact time
     TIMESTAMP=`date '+%s'`

     # file directly as saved
     :0
     $MAILDIR/.INBOX.Procmail/cur/$TIMESTAMP:2,S

}

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.

: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/
}


____________________________________________________________
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