emails: Make missed message email come from 'Zulip Missed Messages.'

This commit is contained in:
James Rowan 2017-07-07 17:59:12 -04:00
parent 04ece5e5c5
commit bba90c5096
2 changed files with 3 additions and 2 deletions

View File

@ -320,7 +320,8 @@ def do_send_missedmessage_events_reply_in_zulip(user_profile, missed_messages, m
'realm_str': user_profile.realm.name,
})
from_name, from_address = None, None
from_name = "Zulip Missed Messages" # type: Text
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.

View File

@ -48,7 +48,7 @@ class TestMissedMessages(ZulipTestCase):
else:
reply_to_emails = ["noreply@zulip.example.com"]
msg = mail.outbox[0]
from_email = formataddr(("Zulip", FromAddress.NOREPLY))
from_email = formataddr(("Zulip Missed Messages", FromAddress.NOREPLY))
self.assertEqual(len(mail.outbox), 1)
if send_as_user:
from_email = '"%s" <%s>' % (othello.full_name, othello.email)