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 2020/08/25 18:04:13 UTC

[incubator-ponymail] branch master updated: Bug: don't add archived-at header to parsed message

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git


The following commit(s) were added to refs/heads/master by this push:
     new 1e53e1c  Bug: don't add archived-at header to parsed message
1e53e1c is described below

commit 1e53e1cd86265783b4c7134312ea7a302e0373b4
Author: Sebb <se...@apache.org>
AuthorDate: Tue Aug 25 19:04:02 2020 +0100

    Bug: don't add archived-at header to parsed message
    
    This fixes #521
---
 CHANGELOG.md      | 1 +
 tools/archiver.py | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8fea982..5c89459 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,5 @@
 ## Changes in 0.12:
+- Bug: don't add archived-at header to parsed message (#521)
 - Enh: Be more lenient when parsing List-Id headers (#511)
 - Enh: add some debug output to import-mbox (#396)
 - Enh: Allow fetching emails with quotes in their document ID
diff --git a/tools/archiver.py b/tools/archiver.py
index a6844f5..60966dd 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -696,8 +696,6 @@ def main():
         if args.private:
             is_public = False
         if 'list-id' in msg:
-            if not msg.get('archived-at'):
-                msg.add_header('archived-at', email.utils.formatdate())
             list_data = collections.namedtuple('importmsg', ['list_id', 'archive_public'])(list_id=msg.get('list-id'),
                                                                                archive_public=is_public)