ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [1/2] incubator-ponymail git commit: archiver does not allow for attachment which is not multipart
Date Mon, 21 Nov 2016 21:59:10 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master fc2a07975 -> 9141d6d37


archiver does not allow for attachment which is not multipart

This fixes #257

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

Branch: refs/heads/master
Commit: 533f6b58f1f71c4b2d69835de4063f4cc86730ab
Parents: fc2a079
Author: Sebb <sebb@apache.org>
Authored: Mon Nov 21 21:56:49 2016 +0000
Committer: Sebb <sebb@apache.org>
Committed: Mon Nov 21 21:56:49 2016 +0000

----------------------------------------------------------------------
 tools/archiver.py | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/533f6b58/tools/archiver.py
----------------------------------------------------------------------
diff --git a/tools/archiver.py b/tools/archiver.py
index 0803695..842d03f 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -174,12 +174,11 @@ class Archiver(object):
     def msgfiles(self, msg):
         attachments = []
         contents = {}
-        if msg.is_multipart():    
-            for part in msg.walk():
-                part_meta, part_file = parse_attachment(part)
-                if part_meta:
-                    attachments.append(part_meta)
-                    contents[part_meta['hash']] = part_file
+        for part in msg.walk():
+            part_meta, part_file = parse_attachment(part)
+            if part_meta:
+                attachments.append(part_meta)
+                contents[part_meta['hash']] = part_file
         return attachments, contents
     
     


Mime
View raw message