procmail
[Top] [All Lists]

Re: Splitting based on month/year

2000-02-09 00:00:28
Thanks Philip.. you saved the day..

The fixed recepie looks like this.. 

:0
* ^From [^ ]+  \/.+
{ FROM_=$MATCH }
:0
* FROM_ ?? ^^... \/[a-z][a-z][a-z]
{ MONTH=$MATCH }   
:0
* FROM_ ?? ()\/[1-2][0-9][0-9][0-9]
{ YEAR=$MATCH }

##
# Sun Managers Mailing list
##
:0:
* ^*sun-managers
sun-managers/$MONTH$YEAR

....And many other mailing lists.. 

Its quite slow but it does work. I ran the whole .procmailrc
and it took almost 15 mins to run through 10k messages but it worked. 

Mike

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