Bug: don't add archived-at header to parsed message
This fixes #521
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 @@
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)