setup-cockpit/roles/neomutt/templates/mbsyncrc.j2

32 lines
833 B
Django/Jinja

{% for account in accounts %}
IMAPStore {{ account.fulladdress }}-remote
Host {{ account.imap.server }}
Port {{ account.imap.port }}
User {{ account.imap.login }}
PassCmd "pass {{ account.passlocation }}"
AuthMechs LOGIN
SSLType IMAPS
CertificateFile /etc/ssl/certs/ca-certificates.crt
MaildirStore {{ account.fulladdress }}-local
Subfolders Verbatim
Path ~/.local/share/mail/{{ account.fulladdress }}/
Inbox ~/.local/share/mail/{{ account.fulladdress }}/INBOX
Flatten .
Channel {{ account.fulladdress }}
{% if ansible_facts['distribution'] == 'Debian' %}
Master :{{ account.fulladdress }}-remote:
Slave :{{ account.fulladdress }}-local:
{% else %}
Far :{{ account.fulladdress }}-remote:
Near :{{ account.fulladdress }}-local:
{% endif %}
Patterns *
Expunge Both
Create Both
SyncState *
MaxMessages 0
ExpireUnread no
{% endfor %}