mirror of
https://github.com/karatektus/pl_mail.git
synced 2026-10-25 10:04:18 +00:00
Archived mail had no list to be browsed in, only search. All Mail lists every conversation outside Spam and the bin (what arrived, what was sent, drafts and archived mail), as Gmail's All Mail does, across the reader's active accounts or within one. It is LabelRole::AllMail, a view and not a place, like Unread: nothing attaches it to mail, it is created hidden when label settings is opened, it is bound to no account and it refuses moves. Its eye in Settings → Mail → Labels shows or hides both the row beside Drafts and the row at the top of each account's folders. Archiving or snoozing from it leaves the row in place. One list scope, `all_mail`, with the account id as its value or empty for every account; AllMailView holds the rules the row buttons, the bulk toolbar, Move to and select-all ask. No migration. Co-authored-by: shady2k <3366415+shady2k@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
39 lines
1.7 KiB
Twig
39 lines
1.7 KiB
Twig
{#
|
|
mail/all_mail.html.twig — one account's All Mail.
|
|
─────────────────────────────────────────────────────────────────────────────
|
|
The row under an account in the sidebar, beside its folders. Every
|
|
conversation of this account outside Spam and the bin; the account's own row
|
|
still opens its Inbox (mail/account.html.twig).
|
|
|
|
Shown in the sidebar while the All Mail label is (LabelRole::AllMail), the
|
|
same switch as the list across every account (mail/unified_all_mail.html.twig).
|
|
Scope `all_mail` with this account's id as its value — see AllMailView.
|
|
#}
|
|
{% extends '_layout/_mailbox.html.twig' %}
|
|
|
|
{% block list_scope %}all_mail{% endblock %}
|
|
|
|
{% block list_scope_value %}{{ account.id }}{% endblock %}
|
|
|
|
{% block title %}{{ 'sidebar.nav.all_mail'|trans }} · {{ account.displayAddress }} — {{ 'app.name'|trans }}{% endblock %}
|
|
|
|
{% block inbox_tabs %}
|
|
<div class="px-4 py-2.5 border-b border-line flex items-center gap-2">
|
|
<h2 class="text-sm font-semibold text-ink-soft">{{ 'sidebar.nav.all_mail'|trans }}</h2>
|
|
<span class="text-xs text-ink-faint truncate">{{ account.displayAddress }}</span>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block message_list %}
|
|
{% if threads is empty %}
|
|
<li class="px-4 py-8 text-center text-sm text-ink-faint">
|
|
{{ 'all_mail.empty'|trans }}
|
|
</li>
|
|
{% else %}
|
|
{% for thread in threads %}
|
|
{# Every row here is the same account, so the dot would say nothing. #}
|
|
{% include '_partials/_thread_row.html.twig' with { thread: thread, unified: false } %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endblock %}
|