Package: spambayes
Version: 1.0.3-1
Severity: normal

sb_filter.py does not deal well with broken MIME messages.

I've been receiving spams with broken headers lately:

  From [EMAIL PROTECTED]  Thu Jun 29 16:32:36 2006
  ...
  Subject: Incredible ...
  Date: Thu, 29 Jun 2006 06:32:29 -0800
  MIME-Version: 1.0
  Content-Type: multipart/related;

  boundary="----=_NextPart_000_000B_01C69AEB.282715C0"
  X-Priority: 3
  X-MSMail-Priority: Normal
  X-Mailer: Microsoft Outlook Express 6.00.2800.1506
  X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506

  [etc]

Note the extra blank line in the Content-Type header.  When this message
gets filtered through sb_filter.py, most of the headers are discarded,
and I get

  X-Spambayes-Classification: spam; 0.94


  boundary="----=_NextPart_000_000B_01C69AEB.282715C0"
  X-Priority: 3
  X-MSMail-Priority: Normal
  X-Mailer: Microsoft Outlook Express 6.00.2800.1506
  X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506

  [etc]

I use sb_filter.py from procmail, which then appends the email to a Unix
mbox file.  Since the 'From ' pseudo-header was removed by sb_filter.py,
the remaining text gets concatenated to the last email in the mailbox.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (300, 'testing'), (200, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-3-686
Locale: LANG=C, LC_CTYPE=lt_LT.UTF-8 (charmap=UTF-8)

Versions of packages spambayes depends on:
ii  python                        2.3.5-2    An interactive high-level object-o

-- no debconf information

Marius Gedminas
-- 
Those who don't understand Linux are doomed to reinvent it, poorly.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to