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 2018/05/25 09:55:53 UTC

[incubator-ponymail] branch master updated: Bug: archiver.py can never detect content-type: flowed

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 7f119d3  Bug: archiver.py can never detect content-type: flowed
7f119d3 is described below

commit 7f119d3a5deb90c6403456ed371aeed55d1781f6
Author: Sebb <se...@apache.org>
AuthorDate: Fri May 25 10:55:49 2018 +0100

    Bug: archiver.py can never detect content-type: flowed
    
    This fixes #461
---
 CHANGELOG.md      | 1 +
 tools/archiver.py | 6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 60aae14..0e5e4ff 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,5 @@
 ## Changes in 0.11-SNAPSHOT
+- Bug: archiver.py can never detect content-type: flowed (#461)
 - Bug: import-mbox.py: imap code should not reset ES instance (#460)
 - Bug: tmpname used before it has been set up in import-mbox (#458)
 - Bug: variable 'mid' used before assignment in archiver.py (#459)
diff --git a/tools/archiver.py b/tools/archiver.py
index eec8aa5..e859bd8 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -134,19 +134,21 @@ class Archiver(object): # N.B. Also used by import-mbox.py
     if config.has_section('mailman') and config.has_option('mailman', 'plugin'):
         implementer(IArchiver)
 
-    # This is a list of the headers we're interested in publishing.
+    # This is a list of headers which are stored in msg_metadata
     keys = [
         "archived-at",
         "delivered-to",
         "from",
         "cc",
+        "content-type",
         "to",
         "date",
         "in-reply-to",
         "message-id",
         "subject",
-        "x-message-id-hash",
         "references",
+        # The following don't appear to be needed currently
+        "x-message-id-hash",
         "x-mailman-rule-hits",
         "x-mailman-rule-misses",
     ]

-- 
To stop receiving notification emails like this one, please contact
sebb@apache.org.