You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2016/06/01 13:36:27 UTC

incubator-ponymail git commit: use strings, not ints here

Repository: incubator-ponymail
Updated Branches:
  refs/heads/master aa9896101 -> 4732d25fc


use strings, not ints here


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

Branch: refs/heads/master
Commit: 4732d25fc23595abe21afd83536a20ff48c61f92
Parents: aa98961
Author: humbedooh <hu...@apache.org>
Authored: Wed Jun 1 15:36:13 2016 +0200
Committer: humbedooh <hu...@apache.org>
Committed: Wed Jun 1 15:36:13 2016 +0200

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


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/4732d25f/tools/archiver.py
----------------------------------------------------------------------
diff --git a/tools/archiver.py b/tools/archiver.py
index f350f5f..e6e0d0a 100644
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -301,8 +301,8 @@ class Archiver(object):
                     mid = "%s@%s" % (hashlib.sha224(msg.as_bytes()).hexdigest(), lid)
                 elif config.has_section('archiver') and config.has_option("archiver", "generator") and config.get("archiver", "generator") == "medium":
                     xbody = body if type(body) is bytes else body.encode('ascii', 'ignore')
-                    xbody += bytes(lid)
-                    xbody += bytes(uid_mdate)
+                    xbody += bytes(lid, encoding='ascii')
+                    xbody += bytes(mdatestring, encoding='ascii')
                     mid = "%s@%s" % (hashlib.sha224(xbody).hexdigest(), lid)
                 else:
                     # Or revert to the old way?