mirror of
https://github.com/chatmail/relay.git
synced 2026-05-17 17:58:59 +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)
|
message = BytesParser(policy=policy.default).parsebytes(content)
|
||||||
if not message.is_multipart():
|
if not message.is_multipart():
|
||||||
return False
|
return False
|
||||||
|
if message.get("subject") != "...":
|
||||||
|
return False
|
||||||
if message.get_content_type() != "multipart/encrypted":
|
if message.get_content_type() != "multipart/encrypted":
|
||||||
return False
|
return False
|
||||||
parts_count = 0
|
parts_count = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user