Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
email: Attempt to suppress email auto-replies.
Alex Vandiver134977b5903e
diff --git a/zerver/lib/send_email.py b/zerver/lib/send_email.pyindex 81259aa8f42..0bc5f9c1301 100644--- a/zerver/lib/send_email.py+++ b/zerver/lib/send_email.py@@ -101,7 +101,11 @@ def build_email(stringified = str(Address(addr_spec=to_user.delivery_email))to_emails.append(stringified)- extra_headers = {}+ # Attempt to suppress all auto-replies. This header originally+ # came out of Microsoft Outlook and friends, but seems reasonably+ # commonly-recognized.+ extra_headers = {"X-Auto-Response-Suppress": "All"}+if realm is not None:# formaddr is meant for formatting (display_name, email_address) pair for headers like "To",# but we can use its utility for formatting the List-Id header, as it follows the same format,