only test subtype
This commit is contained in:
parent
9c5567addf
commit
dc7bebde92
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue