Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
email: Lowercase topic name inside prepare_synthetic_root_message_id.
Prakhar Pratyush5337cb7af1ad
diff --git a/zerver/lib/email_notifications.py b/zerver/lib/email_notifications.pyindex c36a61c50aa..1a527660f3a 100644--- a/zerver/lib/email_notifications.py+++ b/zerver/lib/email_notifications.py@@ -433,7 +433,7 @@ def prepare_synthetic_root_message_id(# ref:# - https://datatracker.ietf.org/doc/html/rfc5322#section-3.6.4# - https://datatracker.ietf.org/doc/html/rfc5322#section-3.2.3- topic_name_base64 = base64.b64encode(topic_name.encode("utf-8")).decode("utf-8")+ topic_name_base64 = base64.b64encode(topic_name.lower().encode("utf-8")).decode("utf-8")id_left = f"{recipient_id}.{topic_name_base64}"return f"<{id_left}@{settings.EXTERNAL_HOST_WITHOUT_PORT}>"@@ -610,7 +610,7 @@ def do_send_missedmessage_events_reply_in_zulip(topic_resolved=topic_resolved,)synthetic_root_message_id = prepare_synthetic_root_message_id(- Recipient.STREAM, message.recipient_id, topic_name=display_topic_name.lower()+ Recipient.STREAM, message.recipient_id, topic_name=display_topic_name)else:raise AssertionError("Invalid messages!")