Adjusted be-mbox-to-xml to not drop author info from multipart messages
authorW. Trevor King <wking@drexel.edu>
Sat, 5 Dec 2009 22:34:09 +0000 (17:34 -0500)
committerW. Trevor King <wking@drexel.edu>
Sat, 5 Dec 2009 22:34:09 +0000 (17:34 -0500)
interfaces/xml/be-mbox-to-xml

index 3af29789146dd0fd620b2a5a974ddd1018e38b94..eda6d6edaa4cacb9b9dea85089bf55f9e74f7699 100755 (executable)
@@ -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):
     """