]> git.phdru.name Git - mimedecode.git/blobdiff - mimedecode.py
Make option -e to work with multipart messages
[mimedecode.git] / mimedecode.py
index 7d96a3d50a3eacb030265ae0846e7509843793d6..d239a1fe2234e332cb78b7d96387c687c98c6e70 100755 (executable)
@@ -394,6 +394,8 @@ def decode_multipart(msg):
             if boundary:
                 output("%s--%s--%s" % (os.linesep, boundary, os.linesep))
             return
+        elif content_type in g.error_mask:
+            raise ValueError, "content type %s prohibited" % ctype
 
     output_headers(msg)