glenn.steen at gmail.com
Thu Feb 9 10:03:48 GMT 2006
On 09/02/06, Anthony Peacock <a.peacock at chime.ucl.ac.uk> wrote:
> Glenn Steen wrote:
> > On 08/02/06, Stephen Swaney <steve.swaney at fsl.com> wrote:
> >>> -----Original Message-----
> >>> From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-
> >>> bounces at lists.mailscanner.info] On Behalf Of Glenn Steen
> >>> Sent: Wednesday, February 08, 2006 3:44 PM
> >>> To: MailScanner discussion
> >>> Subject: Re: Archive Filter
> >>> On 08/02/06, Alex Neuman van der Hans <alex at nkpanama.com> wrote:
> >>>> True... you could set up a script that runs every so often and deletes
> >>>> messages with X-Spam-Status: yes or something like that... right?
> >>> Yeah, well... If one runs MailWatch one could use the nice things in
> >>> the maillog table to identify the "affected" messages... But the
> >>> "hairy" part is to script up the part that edits the mbox file(s) on
> >>> the fly (and safely), so to speak. Or perhaps there are some
> >>> not-that-invasive tool around that could help with that... Haven't
> >>> really looked for something like that.
> >> http://search.cpan.org/~vparseval/Mail-MboxParser-0.55/MboxParser.pm
> >> I'm sure there are more Perl modules for working with mailboxes but this one
> >> look like it would do the heavy lifting.
> >> Steve
> > Seems to be only RO, so would perhaps not work... And there is the
> > problem of rewriting an mbox that is getting appended to (by MS). All
> > that would be simpler (as always:-) in a Maildir-ish environment... :)
> > In a life with more time....
> Look for Mail::Box::Manager on CPAN. I use this a lot for manageing
> mailbox files, it even copes with locking.
Oooh, nice. I actually saw that late last night, but prioritized
sleeping, for some reason:-).
As seen in various examples, like
and the filter examples ... it would definitely be able to do what
Rodney (and perhaps others too) needs. Just a simple case of finding
the Message-IDs and greping out the messages and then deleting... Now,
just to find the time to type something up...:-)
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se
More information about the MailScanner