From: vkolosov at unitedmedia.com (Kolosov, Victor)
Date: Fri, 16 Apr 1999 21:40:39 GMT
Subject: smtplib error in 1.5.2
Message-ID: <461182F0B9B7D111B4000008C7282ADC22B04E@nynt04.umny.scripps.com>
Content-Length: 1115
X-UID: 1140                                                  

Hi,

Everything has seemed to work in 1.5.1 but after installing 1.5.2 on our
Unix box running Solaris 2.5 I get this error when trying to use smtplib

>>> import rfc822, string, sys
>>> import smtplib
>>>msg='Test Message'
>>>s = smtplib.SMTP('localhost')
>>> s.sendmail('me at my.com',['me at my.com'],msg)
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python1.5.2/smtplib.py", line 480, in sendmail
    (code,resp)=self.data(msg)
  File "/usr/local/lib/python1.5.2/smtplib.py", line 374, in data
    self.send(quotedata(msg))
  File "/usr/local/lib/python1.5.2/smtplib.py", line 134, in quotedata
    re.sub(r'(?:\r\n|\n|\r(?!\n))', CRLF, data))
  File "/usr/local/lib/python1.5.2/re.py", line 48, in sub
    return pattern.sub(repl, string, count)
  File "/usr/local/lib/python1.5.2/re.py", line 133, in sub
    return self.subn(repl, string, count)[0]
  File "/usr/local/lib/python1.5.2/re.py", line 167, in subn
    regs = match(source, pos, end, 0)
TypeError: argument 1: expected read-only character buffer, list found

======
Is there something obvious I do not see?




