[New-bugs-announce] [issue2518] smtpd.py to handle huge email
HiroakiKawai
report at bugs.python.org
Mon Mar 31 07:11:57 CEST 2008
New submission from HiroakiKawai <kawai at apache.org>:
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.
----------
components: Library (Lib)
files: smtpd.patch
keywords: patch
messages: 64776
nosy: kawai
severity: normal
status: open
title: smtpd.py to handle huge email
type: security
versions: Python 2.5
Added file: http://bugs.python.org/file9909/smtpd.patch
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2518>
__________________________________
More information about the New-bugs-announce
mailing list