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: archiver/importer adds a Message-Id to mails if they don't have one
Date Mon, 04 Sep 2017 16:54:07 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 0b10df0f3 -> e7754bab6


archiver/importer adds a Message-Id to mails if they don't have one

This fixes #403

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

Branch: refs/heads/master
Commit: e7754bab60956f87fbe130656081f51c22cdb126
Parents: 0b10df0
Author: Sebb <sebb@apache.org>
Authored: Mon Sep 4 17:54:04 2017 +0100
Committer: Sebb <sebb@apache.org>
Committed: Mon Sep 4 17:54:04 2017 +0100

----------------------------------------------------------------------
 CHANGELOG.md      | 1 +
 tools/archiver.py | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/e7754bab/CHANGELOG.md
----------------------------------------------------------------------
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e180827..44bc827 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,5 @@
 ## CHANGES in 0.10:
+- archiver/importer adds a Message-Id to mails if they don't have one (#403)
 - Fixed an issue with ID generation where an email body does not exist
 - Fixed an issue where favorites could contain null entries due to missing GC (#392)
 - Added sample configs for Pony Mail (#374)

http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/e7754bab/tools/archiver.py
----------------------------------------------------------------------
diff --git a/tools/archiver.py b/tools/archiver.py
index f7eabfe..b3246d2 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -277,8 +277,6 @@ class Archiver(object):
                     msg_metadata[key] = hval
             except Exception as err:
                 print("Could not decode headers, ignoring..: %s" % err)
-        if not msg_metadata.get('message-id'):
-            msg_metadata['message-id'] = mid
         mdate = None
         uid_mdate = 0 # mdate for UID generation
         try:


Mime
View raw message