projects
/
pgarchives.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9be9ff5
)
Handle mails that have an envelope from at the end
author
Magnus Hagander
<magnus@hagander.net>
Sat, 7 Jul 2012 18:13:04 +0000
(20:13 +0200)
committer
Magnus Hagander
<magnus@hagander.net>
Sat, 7 Jul 2012 18:13:04 +0000
(20:13 +0200)
loader/clean_date.py
patch
|
blob
|
blame
|
history
diff --git
a/loader/clean_date.py
b/loader/clean_date.py
index 94f42c43de235608650f092005af889900804a7b..a51943a28c190c4583b16de5d689ba4b91ecc4cf 100755
(executable)
--- a/
loader/clean_date.py
+++ b/
loader/clean_date.py
@@
-34,6
+34,10
@@
def scan_message(messageid, olddate, curs):
if m:
ds = m.group(1)
break
+ m = re.search(';\s*(.*)\s*\(envelope-from [^\)]+\)$', r)
+ if m:
+ ds = m.group(1)
+ break
if not ds:
print "Could not find date. Sorry."