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: Show some message structure if verbose
Date Mon, 25 Sep 2017 13:25:12 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 698732cd4 -> 15fdd790e


Show some message structure if verbose


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

Branch: refs/heads/master
Commit: 15fdd790ea7d7cd73170536720f2478b9f97156a
Parents: 698732c
Author: Sebb <sebb@apache.org>
Authored: Mon Sep 25 14:25:02 2017 +0100
Committer: Sebb <sebb@apache.org>
Committed: Mon Sep 25 14:25:02 2017 +0100

----------------------------------------------------------------------
 tools/archiver.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/15fdd790/tools/archiver.py
----------------------------------------------------------------------
diff --git a/tools/archiver.py b/tools/archiver.py
index 78db074..cda12a0 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -215,6 +215,8 @@ class Archiver(object):
         body = None
         firstHTML = None
         for part in msg.walk():
+            if args.verbose:
+                print("Content-Type: %s" % part.get_content_type())
             """
                 Find the first body part and the first HTML part
                 Note: cannot use break here because firstHTML is needed if len(body) <=
1


Mime
View raw message