diff --git a/gpgmymail b/gpgmymail index 0be804b..1125fe0 100755 --- a/gpgmymail +++ b/gpgmymail @@ -44,7 +44,7 @@ def is_message_encrypted(message: email.message.Message) -> bool: Currently just does it by checking the content type header: https://stackoverflow.com/questions/18819126/checking-encryption-status-of-email""" - return message.get_content_type() == "multipart/encrypted" + return message.get_content_subtype() == "encrypted" def encrypt( message: email.message.Message,