procmail
[Top] [All Lists]

Re: procmail regex style using Or construct

2009-02-19 16:03:35
On Thu, 19 Feb 2009, Charles Gregory wrote:

On Thu, 19 Feb 2009, o(_dot_)nash(_at_)cs(_dot_)ucc(_dot_)ie wrote:
I tested all three of your suggestions
[ using Ubuntu 8.04 Linux with procmail v3.22 2001/09/10 ]
This is the only one that worked on my system
* ^Date:.* (1|2|3|4|5|6|7) $MNTH $YR

Yes, as noted in other posts, the syntax [8-15] would not work....

While we're at it, are you trying to split up mail by date as a way to manage archiving of old mail? Perhaps rather than messing around with delivery, you might look at the program/package "archmbox" which will scan an mbox and archive or delete mail older than a specified number of days.

- Charles
____________________________________________________________
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


What I am trying to do is part of a backup strategy for a person who does not ever want to delete an email. Archmbox perl script, I am not familiar with but so far I would prefer to use the minimum of tools. tricky thesedays with people using multiple devices, blackberries,laptops,desktops... So bash, postfix, spamAssassin, procmail (formail) seem to be the good old reliables.

--
Oliver

____________________________________________________________
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