- if Signed.get_content_type() != "text/plain":
- raise UDFormatError, "Invalid pgp/mime encoding [wrong plaintext type]";
+ if Signed.get_content_type() != "text/plain" and not lax_multipart:
+ raise UDFormatError, "Invalid pgp/mime encoding for first part[wrong plaintext type]";