Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

emails: Rename "missed message email" to "message notification email".

Mateusz Mandera977a2f7fa0dd
diff --git a/docs/production/email-gateway.md b/docs/production/email-gateway.md
index 530618879c3..754106294d5 100644
--- a/docs/production/email-gateway.md
+++ b/docs/production/email-gateway.md
@@ -4,8 +4,8 @@ Zulip's incoming email gateway integration makes it possible to send
messages into Zulip by sending an email. It's highly recommended
because it enables:
-* When users reply to one of Zulip's missed message email
- notifications from their email client, the reply can go directly
+* When users reply to one of Zulip's message notification emails
+ from their email client, the reply can go directly
into Zulip.
* Integrating third-party services that can send email notifications
into Zulip. See the [integration
diff --git a/docs/production/requirements.md b/docs/production/requirements.md
index 99792c930f9..193966e97cb 100644
--- a/docs/production/requirements.md
+++ b/docs/production/requirements.md
@@ -125,7 +125,7 @@ certificate documentation](ssl-certificates.md).
* Outgoing email (SMTP) credentials that Zulip can use to send
outgoing emails to users (e.g. email address confirmation emails
- during the signup process, missed message notifications, password
+ during the signup process, message notification emails, password
reset, etc.). If you don't have an existing outgoing SMTP solution,
read about
[free outgoing SMTP options and options for prototyping](email.html#free-outgoing-email-services).
diff --git a/docs/subsystems/email.md b/docs/subsystems/email.md
index 8d03ff6efb3..5f291d816a8 100644
--- a/docs/subsystems/email.md
+++ b/docs/subsystems/email.md
@@ -4,7 +4,7 @@ This page has developer documentation on the Zulip email system. If you're
trying to configure your server to send email, you might be looking for our
guide to [sending outgoing email](../production/email.md). If you're trying to
configure an email integration to receive incoming email (e.g. so that users
-can reply to missed message emails via email), you might be interested in
+can reply to message notification emails via email), you might be interested in
our instructions for
[setting up an email integration](https://zulip.com/integrations/doc/email).
diff --git a/static/js/admin.js b/static/js/admin.js
index 541c0808f5d..2370fb947e0 100644
--- a/static/js/admin.js
+++ b/static/js/admin.js
@@ -30,7 +30,7 @@ const admin_settings_label = {
realm_default_twenty_four_hour_time: $t({defaultMessage: "Time format"}),
realm_send_welcome_emails: $t({defaultMessage: "Send emails introducing Zulip to new users"}),
realm_message_content_allowed_in_email_notifications: $t({
- defaultMessage: "Allow message content in missed message emails",
+ defaultMessage: "Allow message content in message notification emails",
}),
realm_digest_emails_enabled: $t({
defaultMessage: "Send weekly digest emails to inactive users",
diff --git a/static/js/settings.js b/static/js/settings.js
index 0fe8729e206..bfefec50608 100644
--- a/static/js/settings.js
+++ b/static/js/settings.js
@@ -55,10 +55,10 @@ function setup_settings_label() {
defaultMessage: "Send email notifications for new logins to my account",
}),
message_content_in_email_notifications: $t({
- defaultMessage: "Include message content in missed message emails",
+ defaultMessage: "Include message content in message notification emails",
}),
realm_name_in_notifications: $t({
- defaultMessage: "Include organization name in subject of missed message emails",
+ defaultMessage: "Include organization name in subject of message notification emails",
}),
presence_enabled: $t({
defaultMessage: "Display my availability to other users when online",
diff --git a/templates/zerver/help/configure-missed-message-emails.md b/templates/zerver/help/configure-missed-message-emails.md
index d30d6fedb53..70afac7a588 100644
--- a/templates/zerver/help/configure-missed-message-emails.md
+++ b/templates/zerver/help/configure-missed-message-emails.md
@@ -1,16 +1,16 @@
-# Configure missed message emails
+# Configure message notification emails
## Include organization name in subject line
If you belong to multiple Zulip organizations, it can be helpful to have the
-name of the organization in the subject line of your missed message emails.
+name of the organization in the subject line of your message notification emails.
{start_tabs}
{settings_tab|notifications}
1. Under **Other notification settings**, select
- **Include organization name in subject of missed message emails**.
+ **Include organization name in subject of message notification emails**.
{end_tabs}
@@ -29,6 +29,6 @@ being sent through your email.
{settings_tab|notifications}
1. Under **Other notification settings**, toggle
- **Include message content in missed message emails**.
+ **Include message content in message notification emails**.
{end_tabs}
diff --git a/templates/zerver/help/hide-message-content-in-emails.md b/templates/zerver/help/hide-message-content-in-emails.md
index 6f4e13ba748..07606c305ba 100644
--- a/templates/zerver/help/hide-message-content-in-emails.md
+++ b/templates/zerver/help/hide-message-content-in-emails.md
@@ -4,7 +4,7 @@
For security or compliance reasons, you may want to prevent Zulip message
content from being sent through your email system. The only place Zulip
-currently sends message content is in missed message email notifications.
+currently sends message content is in message notification emails.
This setting also blocks message topics, stream names, and user names from
being sent through the email system.
@@ -16,7 +16,7 @@ being sent through the email system.
{settings_tab|organization-settings}
1. Under **Other settings**, toggle
- **Allow message content in missed message emails**.
+ **Allow message content in message notification emails**.
{end_tabs}
diff --git a/templates/zerver/help/include/sidebar_index.md b/templates/zerver/help/include/sidebar_index.md
index 7d04cf414b4..f0c6fb1e169 100644
--- a/templates/zerver/help/include/sidebar_index.md
+++ b/templates/zerver/help/include/sidebar_index.md
@@ -78,7 +78,7 @@
* [Mute a topic](/help/mute-a-topic)
* [Alert words](/help/add-an-alert-word)
* [Disable new login emails](/help/disable-new-login-emails)
-* [Configure missed message emails](/help/configure-missed-message-emails)
+* [Configure message notification emails](/help/configure-missed-message-emails)
* [Change notification sound](/help/change-notification-sound)
* [Troubleshoot desktop notifications](/help/troubleshooting-desktop-notifications)
* [Test mobile notifications](/help/test-mobile-notifications)
diff --git a/templates/zerver/help/message-a-stream-by-email.md b/templates/zerver/help/message-a-stream-by-email.md
index ae3342fc656..7c2dfd9d297 100644
--- a/templates/zerver/help/message-a-stream-by-email.md
+++ b/templates/zerver/help/message-a-stream-by-email.md
@@ -56,7 +56,7 @@ below by sending email to
text (like signatures). With this option, Zulip will include all footers.
* **.include-quotes**: In many email clients, when you reply to a message
- (e.g. a missed message email), a copy of the original message is
+ (e.g. a message notification email), a copy of the original message is
automatically added to the bottom of your reply. By default, Zulip tries
to remove that copied message. With this option, Zulip will include it.
diff --git a/zerver/lib/email_mirror.py b/zerver/lib/email_mirror.py
index 9f0d93ca195..2a645a8152f 100644
--- a/zerver/lib/email_mirror.py
+++ b/zerver/lib/email_mirror.py
@@ -225,7 +225,7 @@ def send_mm_reply_to_stream(
message_content=body,
)
except JsonableError as error:
- error_message = "Error sending message to stream {stream} via missed messages email reply:\n{error}".format(
+ error_message = "Error sending message to stream {stream} via message notification email reply:\n{error}".format(
stream=stream.name, error=error.msg
)
internal_send_private_message(
@@ -445,7 +445,7 @@ def process_missed_message(to: str, message: EmailMessage) -> None:
recipient = mm_address.message.recipient
if not is_user_active(user_profile):
- logger.warning("Sending user is not active. Ignoring this missed message email.")
+ logger.warning("Sending user is not active. Ignoring this message notification email.")
return
body = construct_zulip_body(message, user_profile.realm)
diff --git a/zerver/lib/email_notifications.py b/zerver/lib/email_notifications.py
index 759516288da..a00502c7332 100644
--- a/zerver/lib/email_notifications.py
+++ b/zerver/lib/email_notifications.py
@@ -184,7 +184,7 @@ def build_message_list(
stream_map: Dict[int, Stream], # only needs id, name
) -> List[Dict[str, Any]]:
"""
- Builds the message list object for the missed message email template.
+ Builds the message list object for the message notification email template.
The messages are collapsed into per-recipient and per-sender blocks, like
our web interface
"""
@@ -506,7 +506,7 @@ def do_send_missedmessage_events_reply_in_zulip(
from_address = FromAddress.NOREPLY
if len(senders) == 1 and settings.SEND_MISSED_MESSAGE_EMAILS_AS_USER:
# If this setting is enabled, you can reply to the Zulip
- # missed message emails directly back to the original sender.
+ # message notification emails directly back to the original sender.
# However, one must ensure the Zulip server is in the SPF
# record for the domain, or there will be spam/deliverability
# problems.
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 59ea45fa373..87290407a4e 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -9089,7 +9089,7 @@ paths:
- name: message_content_in_email_notifications
in: query
description: |
- Include the message's content in missed messages email notifications.
+ Include the message's content in email notifications for new messages.
schema:
type: boolean
example: true
@@ -9128,7 +9128,7 @@ paths:
- name: realm_name_in_notifications
in: query
description: |
- Include organization name in subject of missed message emails.
+ Include organization name in subject of message notification emails.
schema:
type: boolean
example: true
diff --git a/zerver/tests/test_email_mirror.py b/zerver/tests/test_email_mirror.py
index 32f4c6361fb..cbb428eeb40 100644
--- a/zerver/tests/test_email_mirror.py
+++ b/zerver/tests/test_email_mirror.py
@@ -794,7 +794,7 @@ class TestStreamEmailMessagesEmptyBody(ZulipTestCase):
class TestMissedMessageEmailMessages(ZulipTestCase):
def test_receive_missed_personal_message_email_messages(self) -> None:
- # build dummy messages for missed messages email reply
+ # build dummy messages for message notification email reply
# have Hamlet send Othello a PM. Othello will reply via email
# Hamlet will receive the message.
self.login("hamlet")
@@ -838,7 +838,7 @@ class TestMissedMessageEmailMessages(ZulipTestCase):
def test_receive_missed_huddle_message_email_messages(self) -> None:
- # build dummy messages for missed messages email reply
+ # build dummy messages for message notification email reply
# have Othello send Iago and Cordelia a PM. Cordelia will reply via email
# Iago and Othello will receive the message.
self.login("othello")
@@ -889,9 +889,9 @@ class TestMissedMessageEmailMessages(ZulipTestCase):
self.assertEqual(message.recipient.type, Recipient.HUDDLE)
def test_receive_missed_stream_message_email_messages(self) -> None:
- # build dummy messages for missed messages email reply
+ # build dummy messages for message notification email reply
# have Hamlet send a message to stream Denmark, that Othello
- # will receive a missed message email about.
+ # will receive a message notification email about.
# Othello will reply via email.
# Hamlet will see the message in the stream.
self.subscribe(self.example_user("hamlet"), "Denmark")
@@ -970,7 +970,7 @@ class TestMissedMessageEmailMessages(ZulipTestCase):
self.assertEqual(
message.content,
- "Error sending message to stream announce via missed messages email reply:\nOnly organization administrators can send to this stream.",
+ "Error sending message to stream announce via message notification email reply:\nOnly organization administrators can send to this stream.",
)
self.assertEqual(message.sender, get_system_bot(settings.NOTIFICATION_BOT))
diff --git a/zerver/tests/test_email_notifications.py b/zerver/tests/test_email_notifications.py
index a21c41dde07..94168ba5796 100644
--- a/zerver/tests/test_email_notifications.py
+++ b/zerver/tests/test_email_notifications.py
@@ -800,7 +800,7 @@ class TestMissedMessages(ZulipTestCase):
)
# When message content is not allowed at realm level
- # Emails don't have missed message irrespective of message content setting of the user
+ # Emails don't have message content irrespective of message content setting of the user
realm = get_realm("zulip")
realm.message_content_allowed_in_email_notifications = False
realm.save(update_fields=["message_content_allowed_in_email_notifications"])
diff --git a/zerver/tests/test_message_edit_notifications.py b/zerver/tests/test_message_edit_notifications.py
index 98b765013eb..665c2fe930f 100644
--- a/zerver/tests/test_message_edit_notifications.py
+++ b/zerver/tests/test_message_edit_notifications.py
@@ -508,7 +508,7 @@ class EditMessageSideEffectsTest(ZulipTestCase):
self.assertEqual(info["enqueue_kwargs"], expected_enqueue_kwargs)
# Because Cordelia is FULLY present, we don't need to send any offline
- # push notifications or missed message emails.
+ # push notifications or message notification emails.
self.assertEqual(len(info["queue_messages"]), 0)
def test_clear_notification_when_mention_removed(self) -> None:
diff --git a/zerver/tests/test_queue_worker.py b/zerver/tests/test_queue_worker.py
index 06130b275b3..7e214482c6a 100644
--- a/zerver/tests/test_queue_worker.py
+++ b/zerver/tests/test_queue_worker.py
@@ -357,7 +357,7 @@ class WorkerTest(ZulipTestCase):
worker.start()
self.assertEqual(mock_mirror_email.call_count, 2)
- # However, missed message emails don't get rate limited:
+ # However, message notification emails don't get rate limited:
with self.settings(EMAIL_GATEWAY_PATTERN="%[email protected]"):
address = "mm" + ("x" * 32) + "@example.com"
event = dict(
diff --git a/zerver/tests/test_signup.py b/zerver/tests/test_signup.py
index 0d6301fa47e..55115896440 100644
--- a/zerver/tests/test_signup.py
+++ b/zerver/tests/test_signup.py
@@ -2563,10 +2563,10 @@ class EmailUnsubscribeTests(ZulipTestCase):
result = self.client_get(urllib.parse.urlparse(unsubscribe_link).path)
self.assert_in_response("Unknown email unsubscribe request", result)
- def test_missedmessage_unsubscribe(self) -> None:
+ def test_message_notification_emails_unsubscribe(self) -> None:
"""
- We provide one-click unsubscribe links in missed message
- e-mails that you can click even when logged out to update your
+ We provide one-click unsubscribe links in message notification emails
+ that you can click even when logged out to update your
email notification settings.
"""
user_profile = self.example_user("hamlet")