I would like to organize all incoming email into the following directory structure based on the date of the email:
ROOT --+-- YYYYMMDD --+-- HH --+-- mm --+-- YYYYMMDD-HHmmSS-000001 | | | | | | | | .... | | | | | | | +-- YYYYMMDD-HHmmSS-NNNNNN | | +-- mm -- | +-- HH --+-- mm --
Note that each email will be stored as a separate file and the name of the file is YYYYMMDD-HHmmss-NNNNN, where NNNNN is a running number.
Can procmail or maildrop do this? If not, what other options are there?
Thanks in advance.