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/20 22:25:33 UTC

incubator-ponymail git commit: import-mbox.py and archiver.py create different source texts

Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 7e3143249 -> 1a3bff403


import-mbox.py and archiver.py create different source texts 

This fixes #251

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

Branch: refs/heads/master
Commit: 1a3bff403166c917738fd02acefc988b909d4eae
Parents: 7e31432
Author: Sebb <se...@apache.org>
Authored: Sun Nov 20 22:25:11 2016 +0000
Committer: Sebb <se...@apache.org>
Committed: Sun Nov 20 22:25:11 2016 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/1a3bff40/tools/import-mbox.py
----------------------------------------------------------------------
diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index 509769b..15f09ad 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -285,7 +285,7 @@ class SlurpThread(Thread):
                     json_source = {
                         'mid': json['mid'],
                         'message-id': json['message-id'],
-                        'source': message.as_bytes().decode('utf-8', errors='replace')
+                        'source': message.as_string()
                     }
 
                     count += 1