{% if show_message_content %}
{% for recipient_block in messages %}
{% for sender_block in recipient_block.senders %}
{% for message_block in sender_block.content %}
{{ message_block.plain }}
{% endfor %}
{% endfor %}
{% endfor %}
{% else %}
{% if message_content_disabled_by_realm %}
This email does not include message content because your organization has disabled message content appearing in email notifications.
See {{ realm_uri }}/help/hide-message-content-in-emails for more details.
{% elif message_content_disabled_by_user %}
This email does not include message content because you have disabled message content appearing in email notifications.
See {{ realm_uri }}/help/pm-mention-alert-notifications for more details.
{% endif %}
{% endif %}

--
{% if mention %}
You are receiving this because you were mentioned in {{ realm_name }}.
{% elif stream_email_notify %}
You are receiving this because you have email notifications enabled for this stream.
{% endif %}

{% if reply_to_zulip  %}
Reply to this email directly, or view it in Zulip:
{{ narrow_url }}
{% elif not show_message_content %}
View or reply in Zulip:
{{ narrow_url }}
{% else %}
Reply in Zulip:
{{ narrow_url }}

Do not reply to this email. This Zulip server is not configured to accept
incoming emails. Help:
https://zulip.readthedocs.io/en/latest/production/email-gateway.html
{% endif %}

Manage email preferences:
{{ realm_uri }}/#settings/notifications
