Re: script for zapping Swen at the pop server

2003-09-30 Thread ScruLoose
On Mon, Sep 29, 2003 at 12:07:55PM -0500, Ron Johnson wrote: > On Mon, 2003-09-29 at 10:24, Peter S Galbraith wrote: > > This works well: > > > > http://freshmeat.net/projects/swendeleter/?topic_id=29 > > > > To use in cron, I commented out the line: > > > > say "$nmails left in the mailbox"; >

Re: script for zapping Swen at the pop server

2003-09-29 Thread Ron Johnson
On Mon, 2003-09-29 at 10:24, Peter S Galbraith wrote: > This works well: > > http://freshmeat.net/projects/swendeleter/?topic_id=29 > > To use in cron, I commented out the line: > > say "$nmails left in the mailbox"; > > So I only get cron email if it deleted anything. The problem with using h

Re: script for zapping Swen at the pop server

2003-09-29 Thread Peter S Galbraith
This works well: http://freshmeat.net/projects/swendeleter/?topic_id=29 To use in cron, I commented out the line: say "$nmails left in the mailbox"; So I only get cron email if it deleted anything. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Conta

Re: script for zapping Swen at the pop server

2003-09-29 Thread Paul William
Opps, forgot to mention that the line: $delete=0 if /^To.*?linux/i; Must be altered. Replace the linux part with any string that occurs in your email address. eg if you address is [EMAIL PROTECTED] you should replace linux with abc123 ie. $delete=0 if /^To.*?abc123/i; My bad, Cheers Paul --

Re: script for zapping Swen at the pop server

2003-09-29 Thread Paul William
Heres my perl script. I also run it in cron. On Sat, 2003-09-27 at 03:49, Ron Johnson wrote: > (Mailfilter only checks headers, so can't see filenames of > attachments.) > > I've got this in my crontab: > */5 * * * * (/home/me/pop_zap_msft.py && fetchmail -s) > > The rc (named ~/.pop_zap_msftrc)

Re: script for zapping Swen at the pop server

2003-09-28 Thread Jan Willem Stumpel
Another possibility is this: #!/usr/bin/perl use Mail::POP3Client; $pop3user="your-user-name"; $pop3pass="your-mail-password"; $pop3host="your-ISP's-POP3-server"; $pop = new Mail::POP3Client( USER => $pop3user, PASSWORD => $pop3pass, HOST => $pop3hos

Re: script for zapping Swen at the pop server

2003-09-26 Thread Clive Menzies
On (26/09/03 10:49), Ron Johnson wrote: > (Mailfilter only checks headers, so can't see filenames of > attachments.) > > I've got this in my crontab: > */5 * * * * (/home/me/pop_zap_msft.py && fetchmail -s) > > The rc (named ~/.pop_zap_msftrc) has this *exact* format: > SERVER=pop.someisp.net > U

script for zapping Swen at the pop server

2003-09-26 Thread Ron Johnson
(Mailfilter only checks headers, so can't see filenames of attachments.) I've got this in my crontab: */5 * * * * (/home/me/pop_zap_msft.py && fetchmail -s) The rc (named ~/.pop_zap_msftrc) has this *exact* format: SERVER=pop.someisp.net USER=snarfle PASS=blah Hope you find it useful -- --