projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9603b95
)
Adjusted be-mbox-to-xml to not drop author info from multipart messages
author
W. Trevor King
<wking@drexel.edu>
Sat, 5 Dec 2009 22:34:09 +0000
(17:34 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Sat, 5 Dec 2009 22:34:09 +0000
(17:34 -0500)
interfaces/xml/be-mbox-to-xml
patch
|
blob
|
history
diff --git
a/interfaces/xml/be-mbox-to-xml
b/interfaces/xml/be-mbox-to-xml
index 3af29789146dd0fd620b2a5a974ddd1018e38b94..eda6d6edaa4cacb9b9dea85089bf55f9e74f7699 100755
(executable)
--- 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):
"""