ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject incubator-ponymail git commit: use strings, not ints here
Date Wed, 01 Jun 2016 13:36:27 GMT
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 <humbedooh@apache.org>
Authored: Wed Jun 1 15:36:13 2016 +0200
Committer: humbedooh <humbedooh@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?


Mime
View raw message