Package: enemies-of-carlotta
Severity: grave
Justification: causes non-serious data loss

Hi Lars, 

receiving a mail with a utf-8 header causes eoc to loose the mail.
Unfortunatly I don't have a copy of the mail, but I have the python
traceback:

Traceback (most recent call last):
  File "/usr/bin/enemies-of-carlotta", line 16, in ?
    eoc.main(sys.argv[1:])
  File "/usr/share/enemies-of-carlotta/eoc.py", line 1676, in main
    mlm.incoming_message(skip_prefix, domain, moderate, post)
  File "/usr/share/enemies-of-carlotta/eoc.py", line 379, in incoming_message
    list.obey(dict)
  File "/usr/share/enemies-of-carlotta/eoc.py", line 1070, in obey
    self.obey_post(dict, text)
  File "/usr/share/enemies-of-carlotta/eoc.py", line 971, in obey_post
    self.send_mail_to_subscribers(text)
  File "/usr/share/enemies-of-carlotta/eoc.py", line 918, in 
send_mail_to_subscribers
    text = self.mime_encode_headers(text)
  File "/usr/share/enemies-of-carlotta/eoc.py", line 512, in mime_encode_headers
    hdr = email.Header.Header(content, "utf-8")
  File "/usr/lib/python2.3/email/Header.py", line 188, in __init__
    self.append(s, charset, errors)
  File "/usr/lib/python2.3/email/Header.py", line 272, in append
    ustr = unicode(s, incodec, errors)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 93-96: invalid 
data

The mail is lost after that error :(

Alex

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (200, 'unstable')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-rc5
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)


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

Reply via email to