diff options
author | W. Trevor King <wking@drexel.edu> | 2009-12-05 17:34:09 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-12-05 17:34:09 -0500 |
commit | 882492c80f47b6b5330b2510e9b8ef4164666303 (patch) | |
tree | f2b497a5d4299e118cd8863492c7fa4b3a7b37cd /interfaces/xml | |
parent | 9603b95fc0c0b949d2cec10e27215684629f2af1 (diff) | |
download | bugseverywhere-882492c80f47b6b5330b2510e9b8ef4164666303.tar.gz |
Adjusted be-mbox-to-xml to not drop author info from multipart messages
Diffstat (limited to 'interfaces/xml')
-rwxr-xr-x | interfaces/xml/be-mbox-to-xml | 5 |
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): """ |