Message82400
| Author |
l5g |
| Recipients |
l5g |
| Date |
2009年02月18日.01:36:03 |
| SpamBayes Score |
0.000853543 |
| Marked as misclassified |
No |
| Message-id |
<1234920967.72.0.68808055681.issue5304@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
When using smtplib to send mail, I meet this bug. Maybe the line
""" enc = b2a_base64(s[i:i +
max_unencoded]).decode("ascii")"""
should be changed to
""" enc = b2a_base64((s[i:i +
max_unencoded]).encode()).decode("ascii")
File "/usr/local/lib/python3.0/smtplib.py", line 580, in login
AUTH_PLAIN + " " + encode_plain(user, password))
File "/usr/local/lib/python3.0/smtplib.py", line 545, in encode_plain
return encode_base64("0円%s0円%s" % (user, password))
File "/usr/local/lib/python3.0/email/base64mime.py", line 97, in
body_encode
enc = b2a_base64(s[i:i + max_unencoded]).decode("ascii")
TypeError: b2a_base64() argument 1 must be bytes or buffer, not str |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年02月18日 01:36:07 | l5g | set | recipients:
+ l5g |
| 2009年02月18日 01:36:07 | l5g | set | messageid: <1234920967.72.0.68808055681.issue5304@psf.upfronthosting.co.za> |
| 2009年02月18日 01:36:05 | l5g | link | issue5304 messages |
| 2009年02月18日 01:36:04 | l5g | create |
|