aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-05 17:34:09 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-05 17:34:09 -0500
commit882492c80f47b6b5330b2510e9b8ef4164666303 (patch)
treef2b497a5d4299e118cd8863492c7fa4b3a7b37cd
parent9603b95fc0c0b949d2cec10e27215684629f2af1 (diff)
downloadbugseverywhere-882492c80f47b6b5330b2510e9b8ef4164666303.tar.gz
Adjusted be-mbox-to-xml to not drop author info from multipart messages
-rwxr-xr-xinterfaces/xml/be-mbox-to-xml5
1 files changed, 4 insertions, 1 deletions
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):
"""