Archive Filter

Anthony Peacock a.peacock at chime.ucl.ac.uk
Thu Feb 9 09:04:23 GMT 2006


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.

-- 
Anthony Peacock
CHIME, Royal Free & University College Medical School
WWW:    http://www.chime.ucl.ac.uk/~rmhiajp/
"The most exciting phrase to hear in science, the one that heralds new 
discoveries, is not 'Eureka!' but 'That's funny....'" -- Isaac Asimov


More information about the MailScanner mailing list