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.

classification
Title: smtpd.py to handle huge email
Type: enhancement Stage: resolved
Components: email Versions: Python 3.4
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: barry, giampaolo.rodola, kawai, r.david.murray
Priority: normal Keywords: patch

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:32adminsetgithub: 46770
2018-01-10 00:57:31barrysetstatus: open -> closed
resolution: wont fix
messages: + msg309758

stage: test needed -> resolved
2013-03-19 19:52:03serhiy.storchakasetversions: + Python 3.4, - Python 3.2
2013-03-19 19:41:56r.david.murraysetnosy: + barry, r.david.murray
components: + email, - Library (Lib)
2010-08-09 03:47:05terry.reedysetversions: + Python 3.2, - Python 3.1, Python 2.7
2009-03-30 18:59:26r.david.murraysetstage: test needed
type: resource usage -> enhancement
versions: + Python 3.1, Python 2.7, - Python 2.5
2008-04-14 15:12:44giampaolo.rodolasetnosy: + giampaolo.rodola
2008-04-02 04:04:00kawaisetfiles: - smtpd.patch
2008-04-02 04:03:45kawaisetfiles: + smtpd.patch
2008-03-31 05:23:26kawaisetfiles: - smtpd.patch
2008-03-31 05:23:12kawaisetfiles: + smtpd.patch
messages: + msg64777
2008-03-31 05:12:27kawaisettype: security -> resource usage
2008-03-31 05:11:52kawaicreate