Mail box to bogo
Karl Schmidt
karl at xtronics.com
Mon Dec 30 23:26:55 CET 2002
You are sure this will keep the message count correct?
- These are actually imap 'folders'. The folders are actually a file
that appears to be in the mailbox format with only a header at the top.
What I was wanting to do is grab this folder/file with a script that
would feed it through bogofilter. Should be able to then work with two
folders one for missed spam and one to put incorrectly flagged legit mail.
Probably should have a real imap client do this, but it appears that I
could set up a kludge for now.
Once I get a filter working correctly, I want to set up an second script
that will send a header and copy of the spam to the
postmaster at sending_domain and abuse at sendingdomain.
I am trying real hard not have to go to a web form email system.
David Relson wrote:
> Brandon,
>
> You are correct. bogofilter's word registration operations, i.e. '-s',
> '-n', '-S', and '-N', work properly with unix mailboxes.
>
> There's also a nifty tool "formail" on most Linux boxes that will take a
> unix mailbox, break it into messages, and execute a command for each
> one. Using it as a front end, the usage would be
>
> formail -s bogofilter -s < spam-mail.mbox
> or
> formail -s bogofilter -n <good-mail.mbx"
>
>
> At 04:29 PM 12/30/02, Brandon Martus wrote:
>
>> Karl,
>>
>> If you have a mailbox entitled 'spam', I'm pretty sure you can do the
>> following (plus/minus any other flags) :
>>
>> bogofilter -s < spam
>>
>> which will classify each mail in 'spam' as spam.
>>
>> -Brandon
>>
>>
>> Karl Schmidt wrote:
>>
>>> Can bogofilter recognize the Unix mailbox format so one could take a
>>> mail box full of spam and feed it in?
>>> If not, perhaps someone has written a script to do this?
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> FAQ: http://bogofilter.sourceforge.net/bogofilter-faq.html
>> To unsubscribe, e-mail: bogofilter-unsubscribe at aotto.com
>> For summary digest subscription: bogofilter-digest-subscribe at aotto.com
>> For more commands, e-mail: bogofilter-help at aotto.com
>
>
>
> ---------------------------------------------------------------------
> FAQ: http://bogofilter.sourceforge.net/bogofilter-faq.html
> To unsubscribe, e-mail: bogofilter-unsubscribe at aotto.com
> For summary digest subscription: bogofilter-digest-subscribe at aotto.com
> For more commands, e-mail: bogofilter-help at aotto.com
>
--
--------------------------------------------------
Karl Schmidt EMail Karl at xtronics.com
Transtronics, Inc. WEB http://xtronics.com
3209 West 9th Street Ph(785) 841-3089
Lawrence, KS 66049 FAX(785) 841-0434
Definition of Windows XP:
SPAM, thinly disguised as an operating system
--------------------------------------------------
More information about the Bogofilter
mailing list