ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject incubator-ponymail git commit: import-mbox.py does not identify which messages failed
Date Wed, 16 Nov 2016 19:46:21 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master ce8999ffe -> 62fbfb5ff


import-mbox.py does not identify which messages failed

This fixes #246

Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/62fbfb5f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/62fbfb5f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/62fbfb5f

Branch: refs/heads/master
Commit: 62fbfb5fff1cfc9736b700d3b95802bfb4a5d784
Parents: ce8999f
Author: Sebb <sebb@apache.org>
Authored: Wed Nov 16 19:45:51 2016 +0000
Committer: Sebb <sebb@apache.org>
Committed: Wed Nov 16 19:45:51 2016 +0000

----------------------------------------------------------------------
 tools/import-mbox.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/62fbfb5f/tools/import-mbox.py
----------------------------------------------------------------------
diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index 43feb71..bad5965 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -307,6 +307,7 @@ class SlurpThread(Thread):
                             bulks.insert()
                         jas = []
                 else:
+                    print("Failed to parse: Return=%s Message-Id=%s" % (message.get('Return-Path'),
message.get('Message-Id')))
                     baddies += 1
 
             if filebased:


Mime
View raw message