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: Ensure args is defined when called by importer
Date Tue, 26 Sep 2017 00:33:57 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 15fdd790e -> ebd68c8f4


Ensure args is defined when called by importer


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

Branch: refs/heads/master
Commit: ebd68c8f485f451da64a1223c6bc0f9cc5be2fea
Parents: 15fdd79
Author: Sebb <sebb@apache.org>
Authored: Tue Sep 26 01:33:49 2017 +0100
Committer: Sebb <sebb@apache.org>
Committed: Tue Sep 26 01:33:49 2017 +0100

----------------------------------------------------------------------
 tools/archiver.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/ebd68c8f/tools/archiver.py
----------------------------------------------------------------------
diff --git a/tools/archiver.py b/tools/archiver.py
index cda12a0..48fe831 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -67,6 +67,7 @@ config.read("%s/ponymail.cfg" % path)
 auth = None
 parseHTML = False
 iBody = None
+args=None
 
 if config.has_section('mailman') and config.has_option('mailman', 'plugin'):
     from zope.interface import implementer
@@ -215,7 +216,8 @@ class Archiver(object):
         body = None
         firstHTML = None
         for part in msg.walk():
-            if args.verbose:
+            # can be called from importer
+            if args and args.verbose:
                 print("Content-Type: %s" % part.get_content_type())
             """
                 Find the first body part and the first HTML part


Mime
View raw message