You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2017/05/01 15:04:55 UTC
incubator-ponymail git commit: import-mbox.py fails to unescape >From
lines
Repository: incubator-ponymail
Updated Branches:
refs/heads/master f70d824d4 -> 2b8b5b0da
import-mbox.py fails to unescape >From lines
Part of #212
Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/2b8b5b0d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/2b8b5b0d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/2b8b5b0d
Branch: refs/heads/master
Commit: 2b8b5b0da7baf96ebb8e9b15702f3a2a3ce0b2b6
Parents: f70d824
Author: Sebb <se...@apache.org>
Authored: Mon May 1 16:04:51 2017 +0100
Committer: Sebb <se...@apache.org>
Committed: Mon May 1 16:04:51 2017 +0100
----------------------------------------------------------------------
tools/import-mbox.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/2b8b5b0d/tools/import-mbox.py
----------------------------------------------------------------------
diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index d603006..3a2d767 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -233,7 +233,7 @@ class SlurpThread(Thread):
with open(tmpname, "w") as f:
f.write(inp)
f.close()
- messages = mailbox.mbox(tmpname, create=False)
+ messages = mailbox.mbox(tmpname, MboxoFactory, create=False)
count = 0
bad = 0