mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Patch for issue 2848, mostly by Humberto Diogenes, with a couple of
small fixes by Barry. This removes mimetools from the stdlib.
This commit is contained in:
parent
75f25f2c9a
commit
820c120059
23 changed files with 146 additions and 202 deletions
|
@ -421,9 +421,9 @@ class MailmanProxy(PureProxy):
|
|||
# These headers are required for the proper execution of Mailman. All
|
||||
# MTAs in existance seem to add these if the original message doesn't
|
||||
# have them.
|
||||
if not msg.getheader('from'):
|
||||
if not msg.get('from'):
|
||||
msg['From'] = mailfrom
|
||||
if not msg.getheader('date'):
|
||||
if not msg.get('date'):
|
||||
msg['Date'] = time.ctime(time.time())
|
||||
for rcpt, listname, command in listnames:
|
||||
print('sending message to', rcpt, file=DEBUGSTREAM)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue