1
0
Fork 0
mirror of https://git.code.sf.net/p/archivemail/code synced 2024-12-23 08:14:58 +00:00

Fixed guess_return_path() to actually extract 'Return-path' and 'From' headers.

This commit is contained in:
Nikolaus Schulz 2006-09-28 22:26:07 +00:00
parent 8f47290956
commit dc023db895

View file

@ -685,7 +685,7 @@ def guess_return_path(message):
assert(message) assert(message)
for header in ('Return-path', 'From'): for header in ('Return-path', 'From'):
address_header = message.get('header') address_header = message.get(header)
if address_header: if address_header:
(name, address) = rfc822.parseaddr(address_header) (name, address) = rfc822.parseaddr(address_header)
if address: if address: