[Spambayes] Command line .eml processing

skip at pobox.com skip at pobox.com
Mon Apr 13 13:35:52 CEST 2009


    Mike> Correct me if I'm wrong, but it would appear that sb_filter can
    Mike> not process .eml files by passing the eml filename via the command
    Mike> line, correct?

    >> What's a .eml file?

    Victor> Basically it is a degenerate Unix mbox. It consists of one
    Victor> message and has no "^From " line.

Ok, then I think I can state that sb_filter does work with such files.  I
took an mbox file containing a single spam message, stripped it of its From_
line and fed it to sb_filter.py on stdin.  Worked as intended:

    % sb_filter.py < spam.1.eml | egrep Spam
    X-Spambayes-Classification: spam; 0.93
    X-Spambayes-Evidence: '*H*': 0.01; '*S*': 0.88; 'response.': 0.09;

Was there more you needed it to do?

Skip


More information about the SpamBayes mailing list