]> git.phdru.name Git - mimedecode.git/blobdiff - mimedecode.py
Allow -t 'text/*' -b 'image/*' -B '*/*'
[mimedecode.git] / mimedecode.py
index 9af561e90ddc4b87616c2d84f5041eae06be8ef9..1e3bf74b3964717de33883c8b160c19db805f664 100755 (executable)
@@ -312,7 +312,10 @@ def decode_part(msg):
 
     left_binary = False
     for content_type in masks:
-        if content_type in g.binary_mask:
+        if content_type in g.totext_mask or \
+           content_type in g.decoded_binary_mask:
+            break
+        elif content_type in g.binary_mask:
             left_binary = True
             break