You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2021/06/02 10:12:36 UTC

[incubator-ponymail-foal] branch master updated: Restore a missing name attribute for Mailman3

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 8e55c91  Restore a missing name attribute for Mailman3
     new 5b4fb3f  Merge pull request #32 from sbp/archiver-name-attribute
8e55c91 is described below

commit 8e55c9135dc60d2f456204f380a1585d0dae9193
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Wed Jun 2 11:03:26 2021 +0100

    Restore a missing name attribute for Mailman3
---
 tools/archiver.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/archiver.py b/tools/archiver.py
index 18b7be3..bba9422 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -118,7 +118,7 @@ def parse_attachment(
         # In such cases, the get() method returns a Header not a string
         dispositions = str(cd).strip().split(";")
         cdtype = dispositions[0].lower()
-        if cdtype in ("attachment", "inline"):
+        if cdtype in {"attachment", "inline"}:
             fd = part.get_payload(decode=True)
             # Allow for empty string
             if fd is None:
@@ -263,6 +263,7 @@ class Archiver(object):  # N.B. Also used by import-mbox.py
 
     if config.has_option("mailman", "plugin"):
         implementer(IArchiver)
+        name = "foal"
 
     # This is a list of headers which are stored in msg_metadata
     keys = [