#47 -M -p don't work well together

closed
nobody
None
5
2003-05-31
2003-05-29
Sanjoy Mahajan
No

Am using bogofilter 0.13.3-1 (dynamic), Linux, i686, RH
7.1

I tried 'bogofilter -Mp' hoping that it would add an
X-Bogosity line to each message in the mbox file. But
it added a lot more than that.

The attached file is a short (22 lines) mbox file with
two messages (actually the same message twice).

% wc -l doubleone.mbox
22 doubleone.mbox

After passing through bogofilter, it gets almost
doubled in length:

% bogofilter -Mp < doubleone.mbox | wc -l
46

Passthrough mode was probably intended only for single
messages, but using it with an mbox can be useful. For
example, labelling all messages with their spamicity,
then using formail -s to extract those with a large
enough spamicity.

Or, if -M and -p are deemed incompatible, perhaps
bogofilter should exit with an error message.

-Sanjoy

Discussion

  • Sanjoy Mahajan
    Sanjoy Mahajan
    2003-05-29

    mbox containing 2 short messages

     
    Attachments
  • David Relson
    David Relson
    2003-05-31

    • status: open --> closed