aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolaus Schulz <microschulz@web.de>2006-09-28 22:26:07 +0000
committerNikolaus Schulz <microschulz@web.de>2006-09-28 22:26:07 +0000
commitdc023db8954d5a4fa6e14986c7a2be6fcebd8313 (patch)
treeb0b06ffbcf1e4e1a06b77a1f719b6343f6b3cfca
parent8f47290956827329909a9e5aecaa965506bbf35e (diff)
downloadarchivemail-dc023db8954d5a4fa6e14986c7a2be6fcebd8313.tar.gz
archivemail-dc023db8954d5a4fa6e14986c7a2be6fcebd8313.tar.bz2
archivemail-dc023db8954d5a4fa6e14986c7a2be6fcebd8313.zip
Fixed guess_return_path() to actually extract 'Return-path' and 'From' headers.
-rwxr-xr-xarchivemail.py2
1 files changed, 1 insertions, 1 deletions
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: