Bugs item #2908573, was opened at 2009-12-03 23:40 Message generated for change (Comment added) made by montanaro You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=498103&aid=2908573&group_id=61702
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None >Group: 1.1.x >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Nemo Thorx (earth-native) >Assigned to: Skip Montanaro (montanaro) Summary: spambayes corrupts mailbox (From_ escaping) Initial Comment: I'm using debian package of spambayes: Version: 1.0.4-5.1 Messages piped through spambayes are corrupted in their From_ escaping. mbox is a poorly defined format, with multiple variations. They are summarised here: http://homepages.tesco.net/J.deBoynePollard/FGA/mail-mbox-formats.html /usr/lib/python2.5/email/generator.py appears to be the culprit, and says this: Optional mangle_from_ is a flag that, when True (the default), escapes From_ lines in the body of the message by putting a `>' in front of them. This is "mboxo" format - which irreversibly corrupts messages. My opinions on the correctness (or not) of generator.py's behaviour aside, surely spambayes should surely never need to alter the body at all? Request that spambayes sets mangle_from_ to false when calling generator.py. The following demonstrates the behaviour directly: ---- $ echo -e "From this is a pretend header\n\nFrom a line with no > quotes\n>From a line with one > quote\n>>From a line with two > quotes" | sb_filter.py >From this is a pretend header X-Spambayes-Classification: unsure; 0.77 >From a line with no > quotes >From a line with one > quote >>From a line with two > quotes ---- ---------------------------------------------------------------------- >Comment By: Skip Montanaro (montanaro) Date: 2009-12-06 14:28 Message: Thanks for the bug report. I checked in a fix to a couple support files (rev 3255) which will hopefully correct this problem. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=498103&aid=2908573&group_id=61702 _______________________________________________ Spambayes-bugs mailing list [email protected] http://mail.python.org/mailman/listinfo/spambayes-bugs
