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 2016/11/17 00:01:02 UTC

incubator-ponymail git commit: Report some details for any message that fails to parse

Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 2fb2fe473 -> abe43b75d


Report some details for any message that fails to parse

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

Branch: refs/heads/master
Commit: abe43b75d1e59fa9afe342c0ecf9022d8dae68ec
Parents: 2fb2fe4
Author: Sebb <se...@apache.org>
Authored: Thu Nov 17 00:00:41 2016 +0000
Committer: Sebb <se...@apache.org>
Committed: Thu Nov 17 00:00:41 2016 +0000

----------------------------------------------------------------------
 tools/archiver.py | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/abe43b75/tools/archiver.py
----------------------------------------------------------------------
diff --git a/tools/archiver.py b/tools/archiver.py
index 8099945..12b506b 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -362,6 +362,9 @@ class Archiver(object):
             private = True
 
         ojson, contents = self.compute_updates(lid, private, msg)
+        if not ojson:
+            id = msg.get('message-id') or msg.get('Subject') or msg.get("Date")
+            raise Exception("Could not parse message %s for %s" % (id,lid))
 
         msg_metadata = self.msg_metadata
         irt = self.irt