Jul. 20th, 2005

sawyl: (Default)
Discovered 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.

Profile

sawyl: (Default)
sawyl

August 2018

S M T W T F S
   123 4
5 6 7 8910 11
12131415161718
192021222324 25
262728293031 

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 10th, 2026 01:40 pm
Powered by Dreamwidth Studios