procmail
[Top] [All Lists]

Organising mail on a day by day basis

2008-06-22 01:27:14
Hi,

I'm looking to write a script which will organise incoming mail into folders
on a day by day basis.  I have google'd how to configure procmail with the
various scripts but I cannot find a tutorial which will help me out here.

What I'm looking for is something that will read the Date header, interpret
it, and put the mail into the relevant directory/file.

For example, a date header like the following:
1. Date: Sun, 22 Jun 2008 10:20:15 +0200 (SAST)
2. Date: Wed, 14 May 2008 18:21:21 +0200 (SAST)
3. Date: Fri, 17 Apr 2009 12:31:00 +0200 (SAST)

would store the email in a directory/file like so:
1. ~/mail/2008/06Jun/22
2. ~/mail/2008/05May/14
3. ~/mail/2009/04Apr/17

Any help or pointers in the right direction will be greatly appreciated!

Thanks!

Nolan
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
<Prev in Thread] Current Thread [Next in Thread>