From: W. Trevor King Date: Sat, 5 Dec 2009 22:34:09 +0000 (-0500) Subject: Adjusted be-mbox-to-xml to not drop author info from multipart messages X-Git-Tag: 1.0.0~59^2~60 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=882492c80f47b6b5330b2510e9b8ef4164666303;p=be.git Adjusted be-mbox-to-xml to not drop author info from multipart messages --- diff --git a/interfaces/xml/be-mbox-to-xml b/interfaces/xml/be-mbox-to-xml index 3af2978..eda6d6e 100755 --- a/interfaces/xml/be-mbox-to-xml +++ b/interfaces/xml/be-mbox-to-xml @@ -40,7 +40,10 @@ def normalize_email_address(address): """ Standardize whitespace, etc. """ - return email.utils.formataddr(email.utils.parseaddr(address)) + addr = email.utils.formataddr(email.utils.parseaddr(address)) + if len(addr) == 0: + return None + return addr def normalize_RFC_2822_date(date): """