[Spambayes] sb_mboxtrain.py reformatting email?
Tommy Burnette
tommy at ilm.com
Thu Nov 13 15:06:01 EST 2003
Hi Folks,
I've been very happily using spambayes with xemacs & vim for about a
month now. When the latest version was announced I switched right up
to it, but since then I've noticed a behaviour in sb_mboxtrain.py that
is a bit of a pain. (no idea if this is new or not, I just notcied it
recently).
basically, when sb_mboxtrain.py rewrites the mbox to include its
"X-Spambayes-Trained: ham" lines, it is re-formatting the mail
headers. This wreaks havoc on the display in vm's summary mode and is
a bit of a pain to fix.
e.g. this line in a mail header:
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
["31722" "Tue" "12" "November" "2002" "15:05:56" "-0800" "Gayle Peterson" "gayle at lucasdigital.com" nil "457" "2003 Holiday Schedule" "^From:" nil nil "11" nil nil nil nil nil]
nil)
is being transformed into this:
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
["31722" "Tue" "12" "November" "2002" "15:05:56" "-0800" "Gayle
Peterson" "gayle at lucasdigital.com" nil "457" "2003 Holiday
Schedule" "^From:" nil nil "11" nil nil nil nil nil] nil)
which, while neatly formatted, has introduced newlines into places
like the From name, etc. and makes them display as:
From: Gayle
Peterson Subject: 2003 Holiday
Schedule
instead of:
From: Gayle Peterson Subject: 2003 Holiday Schedule
in vm. is there an option to either make sb_mboxtrain.py not rewrite
the mbox file, or at least make it not re-format when it does?
thanks in advance,
More information about the Spambayes
mailing list