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: Report some details for any message that fails to parse
Date Thu, 17 Nov 2016 00:01:02 GMT
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 <sebb@apache.org>
Authored: Thu Nov 17 00:00:41 2016 +0000
Committer: Sebb <sebb@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


Mime
View raw message