Issue 2518: smtpd.py to handle huge email (original) (raw)

Issue2518

Created on 2008-03-31 05:11 by kawai, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
smtpd.patch kawai,2008-04-02 04:03 smtpd.py to use file-descriptor
Messages (3)
msg64776 - (view) Author: HiroakiKawai (kawai) Date: 2008-03-31 05:11
I had some problems when I wanted to do attach a huge data file (such as mp3, avi, or etc.) to an email. Current smtpd.py in Python2.5 calls process_message that takes a string for its argument. This cause python running process to consume too much memory. I'd like to suggest an alternative method for this purpose process_message_huge that takes a file-descriptor for its argument. The patch will use process_message_huge if the method exists, otherwise, it will call process_message with a string that will consume a huge memory for backward compatibility.
msg64777 - (view) Author: HiroakiKawai (kawai) Date: 2008-03-31 05:23
My carelessness, missing importing cStringIO
msg309758 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2018-01-10 00:57
I'm closing this as won't fix since smtpd.py is deprecated and will likely not get any future development. Please see aiosmtpd as a much better third party replacement.
History
Date User Action Args
2022-04-11 14:56:32 admin set github: 46770
2018-01-10 00:57:31 barry set status: open -> closedresolution: wont fixmessages: + stage: test needed -> resolved
2013-03-19 19:52:03 serhiy.storchaka set versions: + Python 3.4, - Python 3.2
2013-03-19 19:41:56 r.david.murray set nosy: + barry, r.david.murraycomponents: + email, - Library (Lib)
2010-08-09 03:47:05 terry.reedy set versions: + Python 3.2, - Python 3.1, Python 2.7
2009-03-30 18:59:26 r.david.murray set stage: test neededtype: resource usage -> enhancementversions: + Python 3.1, Python 2.7, - Python 2.5
2008-04-14 15:12:44 giampaolo.rodola set nosy: + giampaolo.rodola
2008-04-02 04:04:00 kawai set files: - smtpd.patch
2008-04-02 04:03:45 kawai set files: + smtpd.patch
2008-03-31 05:23:26 kawai set files: - smtpd.patch
2008-03-31 05:23:12 kawai set files: + smtpd.patchmessages: +
2008-03-31 05:12:27 kawai set type: security -> resource usage
2008-03-31 05:11:52 kawai create