[neomutt] Handle mailboxes with spaces

This commit is contained in:
Tunui Franken 2024-12-29 18:22:28 +01:00
parent e6e9c403d0
commit a76b6dbf29

View file

@ -28,7 +28,7 @@ set record = "{{ account.other_vars.record | default('+Sent') }}"
set postponed = "{{ account.other_vars.postponed | default('+Drafts') }}"
set trash = "{{ account.other_vars.trash | default('+Trash') }}"
unmailboxes *
mailboxes `find ~/.local/share/mail/{{ account.fulladdress }} -type d -name cur | xargs dirname | sort | xargs`
mailboxes `find ~/.local/share/mail/{{ account.fulladdress }} -type d -name cur -exec dirname {} \; | sort | sed 's/ /\\ /g' | tr '\n' ' '`
{% for folder, hook in account.other_vars.folder_hook.items() %}
folder-hook {{ folder }} "{{ hook }}"
{% endfor %}