From dc023db8954d5a4fa6e14986c7a2be6fcebd8313 Mon Sep 17 00:00:00 2001 From: Nikolaus Schulz Date: Thu, 28 Sep 2006 22:26:07 +0000 Subject: Fixed guess_return_path() to actually extract 'Return-path' and 'From' headers. --- archivemail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivemail.py b/archivemail.py index ed044e8..a0263a4 100755 --- a/archivemail.py +++ b/archivemail.py @@ -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: -- cgit v1.2.3