mirror of
https://git.code.sf.net/p/archivemail/code
synced 2024-12-23 00:06:43 +00:00
Fixed guess_return_path() to actually extract 'Return-path' and 'From' headers.
This commit is contained in:
parent
8f47290956
commit
dc023db895
1 changed files with 1 additions and 1 deletions
|
@ -685,7 +685,7 @@ def guess_return_path(message):
|
|||
assert(message)
|
||||
|
||||
for header in ('Return-path', 'From'):
|
||||
address_header = message.get('header')
|
||||
address_header = message.get(header)
|
||||
if address_header:
|
||||
(name, address) = rfc822.parseaddr(address_header)
|
||||
if address:
|
||||
|
|
Loading…
Reference in a new issue