{% comment %}
Mail sent to user when she was not logged in and received a PM or @-mention
{% endcomment %}

Hello {{ name }},

While you were away you received {{ messages|length }} new message{{ messages|pluralize }}{% if mention %} in which you were mentioned{% endif %}!


{% for recipient_block in messages %}
    {{ recipient_block.header|safe }}
    {% for sender_block in recipient_block.senders %}
        {% if sender_block.sender %}{{ sender_block.sender }}{% endif %}{% for message_block in sender_block.content %}
                {{ message_block.plain }}
        {% endfor %}
    {% endfor %}
{% endfor %}


Click here to log in to Zulip and view your new messages:

{{ url }}

{% if reply_warning %}
Please do not reply to this automated message. To respond to the missed messages you have received, please log on to Zulip and send your replies there.
{% endif %}

Cheers,
The Zulip Team

Note: click here to open your Zulip Settings page and disable future email notifications:

https://zulip.com/#settings

{% comment %}
Mail sent to user when she was not logged in and received a PM or @-mention
{% endcomment %}

Hello {{ name }},

While you were away you received {{ message_count }} new message{{ messages|pluralize }}{% if mention %} in which you were mentioned{% endif %}!


{% for recipient_block in messages %}
    {{ recipient_block.header|safe }}
    {% for sender_block in recipient_block.senders %}
        {% if sender_block.sender %}{{ sender_block.sender }}{% endif %}{% for message_block in sender_block.content %}
                {{ message_block.plain }}
        {% endfor %}
    {% endfor %}
{% endfor %}


Click here to log in to Zulip and view your new messages:

{{ url }}

{% if reply_warning %}
Please do not reply to this automated message. To respond to the missed messages you have received, please log on to Zulip and send your replies there.
{% endif %}

Cheers,
The Zulip Team

Note: click here to open your Zulip Settings page and disable future email notifications:

https://zulip.com/#settings

Fix a bug in the missed message count used for plaintext missed message emails.
Fix a bug in the missed message count used for plaintext missed message emails.

We were previously using the true count of unread message for HTML
emails but the number of conversations for plaintext. Make them
consistent.

(imported from commit efb140abcc95faf00631c03580f518ca4d8ef58c)
