John Poltorak wrote:
I'm only just starting out with procmail, having found an OS/2 port in
the last couple of weeks, so please be gentle with me...
How do I set about archiving mail by date, either month or year?
Try something like this:
SUFFIX=`date +%Y%m`
:0
* ^X-Mailing-List: .*\/[a-z][^ ]*@
{
LIST=`expr match $MATCH '\(.*\)\@'`
:0:
$LIST.$SUFFIX
}
:0
* regexp
foo.$SUFFIX
Regards,
Joey
--
If you come from outside of Finland, you live in wrong country.
-- motd of irc.funet.fi
Please always Cc to me when replying to me on the lists.