Procmail weirdness
Jul. 20th, 2005 07:08 pmDiscovered how to mark messages as read using procmail and maildir today. Turns out the trick involves renaming the mail after it's been delivered, thus:
MAILDIR=$HOME/Maildir :0 c $MAILDIR/ :0 ai * LASTFOLDER ?? ()\/[^/]+^^ | mv $LASTFOLDER $MAILDIR/cur/$MATCH:2,S
Way more complicated than using formail to add a "Status: RO" as used to be the way of things with mbox.