Add config for local maildirs and update isync config
This commit is contained in:
parent
adb5201da3
commit
426886fafc
2 changed files with 9 additions and 8 deletions
|
@ -13,13 +13,10 @@ set use_from = yes
|
||||||
set hostname = "{{ account.fulladdress.split('@') | last }}"
|
set hostname = "{{ account.fulladdress.split('@') | last }}"
|
||||||
|
|
||||||
# IMAP
|
# IMAP
|
||||||
{% if account.imap %}
|
|
||||||
set imap_user = "{{ account.imap.login }}"
|
set imap_user = "{{ account.imap.login }}"
|
||||||
set imap_pass = "`pass {{ account.passlocation }}`"
|
set imap_pass = "`pass {{ account.passlocation }}`"
|
||||||
set folder = "{{ account.imap.proto }}://{{ account.imap.login }}@{{ account.imap.server }}:{{ account.imap.port }}"
|
#set folder = "{{ account.imap.proto }}://{{ account.imap.login }}@{{ account.imap.server }}:{{ account.imap.port }}"
|
||||||
{% else %}
|
|
||||||
set folder = "~/.local/share/mail/{{ account.fulladdress }}"
|
set folder = "~/.local/share/mail/{{ account.fulladdress }}"
|
||||||
{% endif %}
|
|
||||||
set header_cache = "~/.cache/neomutt/{{ account.fulladdress }}/headers"
|
set header_cache = "~/.cache/neomutt/{{ account.fulladdress }}/headers"
|
||||||
set mbox_type = Maildir
|
set mbox_type = Maildir
|
||||||
{% if neomutt_version | int >= 20211015 %}
|
{% if neomutt_version | int >= 20211015 %}
|
||||||
|
@ -30,9 +27,8 @@ set spoolfile = "{{ account.other_vars.spool_file | default('+INBOX') }}"
|
||||||
set record = "{{ account.other_vars.record | default('+Sent') }}"
|
set record = "{{ account.other_vars.record | default('+Sent') }}"
|
||||||
set postponed = "{{ account.other_vars.postponed | default('+Drafts') }}"
|
set postponed = "{{ account.other_vars.postponed | default('+Drafts') }}"
|
||||||
set trash = "{{ account.other_vars.trash | default('+Trash') }}"
|
set trash = "{{ account.other_vars.trash | default('+Trash') }}"
|
||||||
set imap_check_subscribed
|
|
||||||
unmailboxes *
|
unmailboxes *
|
||||||
mailboxes "{{ account.other_vars.spool_file | default('=INBOX') }}"
|
mailboxes `find ~/.local/share/mail/{{ account.fulladdress }} -type d -name cur | xargs dirname | sort | xargs`
|
||||||
{% for folder, hook in account.other_vars.folder_hook.items() %}
|
{% for folder, hook in account.other_vars.folder_hook.items() %}
|
||||||
folder-hook {{ folder }} "{{ hook }}"
|
folder-hook {{ folder }} "{{ hook }}"
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{% for account in accounts %}
|
{% for account in accounts %}
|
||||||
IMAPStore {{ account.fulladdress }}-remote
|
IMAPAccount {{ account.fulladdress }}
|
||||||
Host {{ account.imap.server }}
|
Host {{ account.imap.server }}
|
||||||
Port {{ account.imap.port }}
|
Port {{ account.imap.port }}
|
||||||
User {{ account.imap.login }}
|
User {{ account.imap.login }}
|
||||||
|
@ -8,6 +8,11 @@ AuthMechs LOGIN
|
||||||
SSLType IMAPS
|
SSLType IMAPS
|
||||||
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
|
IMAPStore {{ account.fulladdress }}-remote
|
||||||
|
Account {{ account.fulladdress }}
|
||||||
|
UseNamespace no
|
||||||
|
SubscribedOnly yes
|
||||||
|
|
||||||
MaildirStore {{ account.fulladdress }}-local
|
MaildirStore {{ account.fulladdress }}-local
|
||||||
Subfolders Verbatim
|
Subfolders Verbatim
|
||||||
Path ~/.local/share/mail/{{ account.fulladdress }}/
|
Path ~/.local/share/mail/{{ account.fulladdress }}/
|
||||||
|
@ -22,7 +27,7 @@ Slave :{{ account.fulladdress }}-local:
|
||||||
Far :{{ account.fulladdress }}-remote:
|
Far :{{ account.fulladdress }}-remote:
|
||||||
Near :{{ account.fulladdress }}-local:
|
Near :{{ account.fulladdress }}-local:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
Patterns *
|
Patterns * INBOX
|
||||||
Expunge Both
|
Expunge Both
|
||||||
Create Both
|
Create Both
|
||||||
SyncState *
|
SyncState *
|
||||||
|
|
Loading…
Add table
Reference in a new issue