Issue626119
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2002-10-20 23:02 by acapnotic, last changed 2022-04-10 16:05 by admin. This issue is now closed.
Files | ||||
---|---|---|---|---|
File name | Uploaded | Description | Edit | |
e2email-1.7.py | tim.peters, 2002-10-21 05:31 | The file from the URL |
Messages (9) | |||
---|---|---|---|
msg12875 - (view) | Author: Kevin M. Turner (acapnotic) * | Date: 2002-10-20 23:02 | |
This code broke when I upgraded python from 2.2.1 to 2.2.2. Suddenly, my e-mail is base64 encoded, with no indication of this in the message header, so the message body shows up as garbage in my inbox. http://twistedmatrix.com/users/acapnotic/wares/code/E2Email/e2email-1.7.py I do get a warning: /home/kevint/bin/e2email:188: DeprecationWarning: _encoder argument is obsolete. but it just issues the warning in passing and doesn't stop it from eating my message. |
|||
msg12876 - (view) | Author: Neal Norwitz (nnorwitz) * ![]() |
Date: 2002-10-20 23:28 | |
Logged In: YES user_id=33168 Barry, I raised priority. This sounds like it could be important. |
|||
msg12877 - (view) | Author: Barry A. Warsaw (barry) * ![]() |
Date: 2002-10-21 05:12 | |
Logged In: YES user_id=12800 Is that url meant to point to the example code that illustrates the problem? If so, could you please upload it to this bug report instead. I'm not able to grab the file with wget. |
|||
msg12878 - (view) | Author: Tim Peters (tim.peters) * ![]() |
Date: 2002-10-21 05:31 | |
Logged In: YES user_id=31435 I don't know what the URL has to do with this, but since I'm running on a modern OS I was able to get it for you <wink>. See attachment. |
|||
msg12879 - (view) | Author: Barry A. Warsaw (barry) * ![]() |
Date: 2002-10-21 05:50 | |
Logged In: YES user_id=12800 I have not idea what the url has to do with it either, but I was hoping it would be a simple example of "this code [that] broke when [he] upgraded python from 2.2.1 to 2.2.2". It doesn't appear to be, or at least it doesn't appear to be a simple boiled down example, and I'm too tired right now to slog through all this code. Kevin, can you please upload a simple, reproducible script illustrating the breakage? I'll look at it tomorrow, unless Insomniac Timbot beats me to it. |
|||
msg12880 - (view) | Author: Kevin M. Turner (acapnotic) * | Date: 2002-10-21 08:53 | |
Logged In: YES user_id=9300 I can't debug as much as I'd like, as I don't have parallel installations of 2.2.1 and 2.2.2, but I'll see if I can at least trim that down for you by throwing out all the non-email-package related bits. |
|||
msg12881 - (view) | Author: Kevin M. Turner (acapnotic) * | Date: 2002-10-26 10:11 | |
Logged In: YES user_id=9300 Ok, here's your smaller version. In Python 2.2.2, this makes a message with a base64 encoded body which is not automagically decoded by my email client. In Python 2.2.1, the body is cleartext. #!/usr/bin/env python2.2 from email.MIMEText import MIMEText from email import Encoders print MIMEText("e-mail message body", 'html', "utf-8", Encoders.encode_7or8bit) |
|||
msg12882 - (view) | Author: Barry A. Warsaw (barry) * ![]() |
Date: 2003-03-06 19:15 | |
Logged In: YES user_id=12800 Looking at this again, note that the encoder has nothing to do with it. If you remove it you still get base64 encoded body, which /is/ reflected in the Content-Transfer-Encoding header. The base64 conversion is due to your use of the utf-8 character set for the body of the message. The utf-8 charset is defined as converting body text to base64. One approach to changing this may be to extend the SHORTEST notion to body encodings. I'm not inclined to change this, but if you want to discuss the matter, please bring it up on mimelib-devel@lists.python.org. |
|||
msg12883 - (view) | Author: Barry A. Warsaw (barry) * ![]() |
Date: 2003-03-06 19:21 | |
Logged In: YES user_id=12800 Make that mimelib-devel@lists.sourceforge.net |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-10 16:05:46 | admin | set | github: 37348 |
2002-10-20 23:02:32 | acapnotic | create |