Author ccgus
Recipients ccgus, loewis
Date 2008-11-24.06:26:28
SpamBayes Score 9.75237e-09
Marked as misclassified No
Message-id <>
Encoding the message first doesn't work either:

>>> import smtplib
>>> server = smtplib.SMTP("localhost")
>>> server.sendmail("", "", "√úmlaut".encode("UTF-8"))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/", line 713, in sendmail
    (code,resp) =
  File "/home/", line 477, in data
    q = quotedata(msg)
  File "/home/", line 157, in quotedata
    re.sub(r'(?:\r\n|\n|\r(?!\n))', CRLF, data))
  File "/home/", line 165, in sub
    return _compile(pattern, 0).sub(repl, string, count)
TypeError: can't use a string pattern on a bytes-like object

Should a check be done in data() first, before it tries to try string operations on it?
Date User Action Args
2008-11-24 06:26:30ccgussetrecipients: + ccgus, loewis
2008-11-24 06:26:30ccgussetmessageid: <>
2008-11-24 06:26:30ccguslinkissue4403 messages
2008-11-24 06:26:28ccguscreate