procmail
[Top] [All Lists]

Sorting Archived Mail by Source Folder and Date

2001-12-20 23:35:24
Hello:

I have a fair number of maildir folders of archived mail that I would like to
sort on a monthly basis. Let me illustrate:

I currently have:

$HOME/mail/foo/
$HOME/mail/foo1/
.
.
.
$HOME/mail/foo20/

I would like to sort them into

$HOME/mail/archive/foo1-jan-2001/
$HOME/mail/archive/foo1-feb-2001/
$HOME/mail/archive/foo1-mar-2001/
.
.
.
$HOME/mail/archive/foo20-nov-2001/
$HOME/mail/archive/foo20-dec-2001/

The format of name of the output folder is not mandatory. All that is needed
is that the folders should be distinguishable on the basis of original folder
and month & year.

Unfortunately, my procmail skills don't extend much beyond sorting incoming
mail on the basis of sender, so I'd appreciate some pointers.

-- Shanu
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>