mirror of
https://github.com/chatmail/relay.git
synced 2026-05-13 17:34:38 +00:00
Require that encrypted messages have "..." as a Subject
This commit is contained in:
@@ -14,6 +14,8 @@ def check_encrypted(content):
|
||||
message = BytesParser(policy=policy.default).parsebytes(content)
|
||||
if not message.is_multipart():
|
||||
return False
|
||||
if message.get("subject") != "...":
|
||||
return False
|
||||
if message.get_content_type() != "multipart/encrypted":
|
||||
return False
|
||||
parts_count = 0
|
||||
|
||||
Reference in New Issue
Block a user