mirror of
https://github.com/nix-community/home-manager
synced 2024-12-28 04:39:48 +01:00
bf6b85136b
At the moment, only the inbox of each mail account is added to neomutt. This inbox is always called "Inbox", so if you configure multiple accounts, it is hard to know which one is which. This change allows the user to specify a display name per account that uses `named-mailboxes` under the hood. Additionally this change now allows to add other folders than the inbox, for example the Trash, Spam or Drafts folders to be added on a per-account basis. Using extraOptions is not possible here, as those are lazily loaded on mailbox open and thus would appear at the bottom and not sorted by account. This commit also changes the default sidebar format string to use %D instead of %B because %B will ignore named mailboxes and show the folder name instead.
33 lines
615 B
Text
33 lines
615 B
Text
# Generated by Home Manager.
|
|
set header_cache = "/home/hm-user/.cache/neomutt/headers/"
|
|
set message_cachedir = "/home/hm-user/.cache/neomutt/messages/"
|
|
set editor = "$EDITOR"
|
|
set implicit_autoview = yes
|
|
|
|
alternative_order text/enriched text/plain text
|
|
|
|
set delete = yes
|
|
|
|
# Binds
|
|
|
|
|
|
# Macros
|
|
|
|
|
|
|
|
|
|
# Register accounts
|
|
# register account hm@example.com
|
|
mailboxes "/home/hm-user/Mail/hm@example.com/Inbox"
|
|
|
|
folder-hook /home/hm-user/Mail/hm@example.com/ " \
|
|
source /home/hm-user/.config/neomutt/hm@example.com "
|
|
|
|
|
|
# Source primary account
|
|
source /home/hm-user/.config/neomutt/hm@example.com
|
|
|
|
# Extra configuration
|
|
|
|
|
|
|