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/04 02:48:17 UTC

incubator-ponymail git commit: Missing chardet import

Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 51a25f1fe -> 51c228104


Missing chardet import



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

Branch: refs/heads/master
Commit: 51c228104b6359b38def55f64bcf0115323d7ebe
Parents: 51a25f1
Author: Sebb <se...@apache.org>
Authored: Fri Nov 4 02:48:03 2016 +0000
Committer: Sebb <se...@apache.org>
Committed: Fri Nov 4 02:48:03 2016 +0000

----------------------------------------------------------------------
 tools/archiver.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/51c22810/tools/archiver.py
----------------------------------------------------------------------
diff --git a/tools/archiver.py b/tools/archiver.py
index dd57e68..4b508a7 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -46,6 +46,7 @@ import time
 from collections import namedtuple
 import re
 import codecs
+import chardet
 import configparser
 import os
 import fnmatch
@@ -332,6 +333,7 @@ class Archiver(object):
 
         self.msg_metadata = msg_metadata
         self.irt = irt
+        self.mdate = mdate
 
         return  ojson, contents
             
@@ -361,6 +363,7 @@ class Archiver(object):
 
         msg_metadata = self.msg_metadata
         irt = self.irt
+        mdate = self.mdate
 
         if contents:
             for key in contents:
@@ -469,7 +472,7 @@ class Archiver(object):
                                 'to': msg_metadata['to'],
                                 'subject': msg_metadata['subject'],
                                 'message-id': msg_metadata['message-id'],
-                                'in-reply-to': mirt,
+                                'in-reply-to': irt,
                                 'epoch': email.utils.mktime_tz(mdate),
                                 'mid': mid,
                                 'seen': 0