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: Also check for enriched in multipart
Date Mon, 12 Dec 2016 02:04:27 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master bbf31ec1b -> 710ef41a4


Also check for enriched in multipart

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

Branch: refs/heads/master
Commit: 710ef41a4534613128f51d602d9e2419efb38425
Parents: bbf31ec
Author: Sebb <sebb@apache.org>
Authored: Mon Dec 12 02:03:24 2016 +0000
Committer: Sebb <sebb@apache.org>
Committed: Mon Dec 12 02:03:24 2016 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/710ef41a/tools/archiver.py
----------------------------------------------------------------------
diff --git a/tools/archiver.py b/tools/archiver.py
index 968ebee..46e3130 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -197,6 +197,8 @@ class Archiver(object):
                         for subpart in part.walk():
                             if subpart.get_content_type() == 'text/plain' and not body:
                                 body = subpart.get_payload(decode=True)
+                            if subpart.get_content_type() == 'text/enriched' and not body:
+                                body = subpart.get_payload(decode=True)
                             elif subpart.get_content_type() == 'text/html' and self.html
and not firstHTML:
                                 firstHTML = subpart.get_payload(decode=True)
             


Mime
View raw message