[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

mark cvs commits as read with procmail and maildir



hi!
just to know because is non-trivial to mark a maildir message as read with
procmail, i use this to mark cvs commits in debian-boot as read.

<procmailrc>
# trick to mark cvs commits from debian-boot ML as read
:0
* X-Mailing-List: <debian-boot@lists.debian.org>
{
    # first deliver to maildir so LASTFOLDER gets set'd
    :0 c
    debian-boot/

    # then move it to cur/
    :0 ai
    * ^Subject: cvs commit to debian-installer.*
    * LASTFOLDER ?? ()\/[^/]+^^
    |mv "$LASTFOLDER" "debian-boot/cur/$MATCH:2,S"
}
</procmailrc>

i got the idea from:
http://www.rosat.mpe-garching.mpg.de/mailing-lists/procmail/2000-10/msg00262.html

cheers,
filippo.
--
Filippo Giunchedi
GNU/PG key id: 1024D/6B79D401
Random signature follows:

"unix is simple, but it just takes a genius to understand the simplicity"
-- Dennis Ritchie

Attachment: pgp5p7_tTU90S.pgp
Description: PGP signature


Reply to: