I use the recipe from the Procmail manual to sort into dates:
:0:
$MAILDIR/foo/`date +%Y-%m`
...to put mail into:
$MAILDIR/foo/2003-02
$MAILDIR/foo/2003-03
$MAILDIR/foo/2003-04
...etc.,
I have a large mail file from before I started using this method. Is there a
way of sorting that mail file into the date (YYYY-MM) that the mail arrived?
I tried doing this with formail:
#!/bin/sh
formail -s procmail -m datehandler.rc < BIGFILE
<datehandler.rc>
:0B
`date +%Y-%m`
...but of course that just makes one file with today's date.
Not quite sure how to do this one; any help much appreciated.
Thank you
David
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail