[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
procmail
[Top] [All Lists]

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

2005-08-23 16:29:27
Emil Isberg wrote:

Timothy uses maildir and not mbox-folders so changing the 
in-mail-status-flag wont work (except perhaps for UW-imap).

In maildir (and maildir++) the status is part of the filename, so
after the file is written to new you need to get the filename and
change it with :2,S while moving it to cur.
(http://cr.yp.to/proto/maildir.html)

There is to my knowledge no builtin in procmail to do that, and there
is no faq about it either.

We can do it with one call to an outside program:

:0
* conditions
{
  foldername=whatever

  :0c
  .$foldername/ # stores in .$foldername/new/

  :0
  * LASTFOLDER ?? /\/[^/]+$
  { tail=$MATCH }

  TRAP="mv $LASTFOLDER .$foldername/cur/$tail:2,S"

  HOST
}


____________________________________________________________
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