#83 X-Bogosity header filtered from attachment breaks signature

closed
nobody
None
5
2004-10-13
2004-10-13
No

Look like bug 845711 is revisited.

With the current version (0.92.7 and older ones) the
X-Bogosity header from message/rfc822 attachments is
still removed. This breaks S/MIME and PGP/MIME signatures.

If I pipe the attached mail to bogofilter -p the header
within the message/rfc822 attachments vanishes.

Discussion

  • Alex Pleiner

    Alex Pleiner - 2004-10-13

    Sample Mail with attachment

     
  • David Relson

    David Relson - 2004-10-13

    Logged In: YES
    user_id=30510

    Alex,

    Give this patch a try and let me know how it works.

    David

    Index: lexer.c

    RCS file: /cvsroot/bogofilter/bogofilter/src/lexer.c,v
    retrieving revision 1.102
    diff -u -r1.102 lexer.c
    --- lexer.c 12 Oct 2004 03:44:51 -0000 1.102
    +++ lexer.c 13 Oct 2004 22:50:42 -0000
    @@ -126,6 +126,8 @@
    /* skip spam_header ("X-Bogosity:") lines */
    while (msg_header
    && count != EOF
    + /* don't skip if inside message/rfc822 */
    + && msg_state == msg_state->parent
    && memcmp(buff->t.text,spam_header_name,hdrlen) == 0) {
    count = skip_folded_line(buff);
    }

     
  • David Relson

    David Relson - 2004-10-13
    • status: open --> closed
     
  • Alex Pleiner

    Alex Pleiner - 2004-10-14

    Logged In: YES
    user_id=214435

    David,
    thanks, I did some tests and all succeeded. So the patch
    works. Guess you figured out by yourself as the bug is
    closed :-)

     

Log in to post a comment.