Re: OT: Removal of old 14+ mail from mbox-based mail spool (not maildir)

2005-08-17 Thread Giorgos Keramidas
On 2005-08-17 14:15, Matt Juszczak <[EMAIL PROTECTED]> wrote: > >procmail ruleset, as long as you have tested the ruleset and found that > >it works exactly like you want it to work. > > I'm actually trying to write a script with formail, but its being > annoying: > > orion$ formail -s "parse.pl" <

Re: OT: Removal of old 14+ mail from mbox-based mail spool (not maildir)

2005-08-17 Thread Matt Juszczak
procmail ruleset, as long as you have tested the ruleset and found that it works exactly like you want it to work. - Giorgos I'm actually trying to write a script with formail, but its being annoying: orion$ formail -s "parse.pl" < Spam parse.pl: 3: Syntax error: ")" unexpected parse.pl: 3:

Re: OT: Removal of old 14+ mail from mbox-based mail spool (not maildir)

2005-08-17 Thread Giorgos Keramidas
On 2005-08-17 11:58, Matt Juszczak <[EMAIL PROTECTED]> wrote: > I know how to: > > 1) recursively pull each Spam folder in existance (for x in `ls > /home/*/mail/Spam`; do ; done) > 2) Use grep and awk to pull each message and its relative data (grep the > date, parse it) > > What I'm not sure

Re: OT: Removal of old 14+ mail from mbox-based mail spool (not maildir)

2005-08-17 Thread Matt Juszczak
| Also, a script in sh(1), or do you have some other language available? I have a short PHP script that does something similar and could be modded, perhaps. OTOH, somebody around here could probably give you a one-liner with sh, sed, grep, awk, date, test, etc., but I was at the hospital last

Re: OT: Removal of old 14+ mail from mbox-based mail spool (not maildir)

2005-08-17 Thread Kevin Kinsey
Matt Juszczak wrote: Hi all, Sorry this is off topic, just didn't really know where else to post this other than to fellow sys-admins. I need a script that will analyze a mail spool file and remove email from it that is more than 14 days old. I found a couple; however, they require perl m

Re: OT: Removal of old 14+ mail from mbox-based mail spool (not maildir)

2005-08-17 Thread Giorgos Keramidas
On 2005-08-17 10:50, Matt Juszczak <[EMAIL PROTECTED]> wrote: > Hi all, > Sorry this is off topic, just didn't really know where else to post > this other than to fellow sys-admins. > > I need a script that will analyze a mail spool file and remove email > from it that is more than 14 days old. I

OT: Removal of old 14+ mail from mbox-based mail spool (not maildir)

2005-08-17 Thread Matt Juszczak
Hi all, Sorry this is off topic, just didn't really know where else to post this other than to fellow sys-admins. I need a script that will analyze a mail spool file and remove email from it that is more than 14 days old. I found a couple; however, they require perl modules I couldn't seem