#65 X-Bogosity header filtered from attachment breaks signature

closed
nobody
None
5
2003-12-10
2003-11-20
No

My bogofilter version 0.13.7.2 seems to filter any
existing X-Bogosity header not only from the header of
the email but also from the body, especially from the
header of an included message/rfc-822 attachment, i.e.
a forwarded mail. This causes PGP/MIME signatures
(created with Enigmail in my case) to break.

I believe that bogofilter schould leave the body of an
email as it is and only change the header. If you
disagree, this schould at least become an option.

Discussion

  • Martin von Gagern

    Logged In: YES
    user_id=733620

    I had a closer look at the code. There seem to be two places
    where X-Bogosity headers are filtered. One is in
    write_message, in main.c or passthrough.c, and this one
    takes care of only processing the header.

    The other is the yy_get_new_line in lexer.c, and this is the
    one where things go wrong. We could just remove those 7
    lines, which would also result in this header field being
    fed into the lexer, which IMHO is not a bad thing.

    If you really want to prevent this, you'd have to add
    textblock_add calls to the skip_spam_header function, but I
    see absolutely no reason why you should.

     
  • David Relson

    David Relson - 2003-11-20

    Logged In: YES
    user_id=30510

    Martin,

    It does sound like you've found a defect in bogofilter.
    I'll take a look at the code and your patch and see what's what.

    Can you send a message that demonstrates the problem to me
    at relson@users.sourceforge.net?

    Thanks.

    David

     
  • David Relson

    David Relson - 2003-12-10

    Logged In: YES
    user_id=30510

    Fixed on 11/20.

     
  • David Relson

    David Relson - 2003-12-10
    • status: open --> closed
     

Log in to post a comment.