use env var in muttrc

This commit is contained in:
quenousimporte 2026-07-02 12:11:20 +02:00
parent 62ed4ca6f1
commit faba7a8351
1 changed files with 7 additions and 14 deletions

View File

@ -1,7 +1,7 @@
# imap # imap
set imap_user="<user>" set imap_user="`printf %s \"$MUTT_IMAP_USER\"`"
set imap_pass="<password>" set imap_pass="`printf %s \"$MUTT_IMAP_PASS\"`"
set folder = imaps://imap.<server>.com set folder = "imaps://`printf %s \"$MUTT_IMAP_HOST\"`"
set spoolfile = +INBOX set spoolfile = +INBOX
set postponed = +Drafts set postponed = +Drafts
@ -10,13 +10,13 @@ set record = +Sent
set trash = +Trash set trash = +Trash
# smtp # smtp
set smtp_url="smtps://<user>@smtp.<server>.com:465/" set smtp_url="smtps://`printf %s \"$MUTT_SMTP_USER\"`@`printf %s \"$MUTT_SMTP_HOST\"`:465/"
set smtp_pass="<password>" set smtp_pass="`printf %s \"$MUTT_SMTP_PASS\"`"
set from = '<email>' set from = "`printf %s \"$MUTT_FROM_EMAIL\"`"
# Common part # Common part
set imap_check_subscribed set imap_check_subscribed
set realname = '<name>' set realname = "`printf %s \"$MUTT_REALNAME\"`"
set use_from = yes set use_from = yes
# UI # UI
@ -30,13 +30,6 @@ set charset = "utf-8";
set header_cache="\~/Mail/cache/" set header_cache="\~/Mail/cache/"
set message_cachedir="\~/Mail/cache/" set message_cachedir="\~/Mail/cache/"
# Multiple accounts
# folder-hook '<account1>' 'source \~/.mutt/<account1>'
# folder-hook '<account2>' 'source \~/.mutt/<account2>'
# source \~/.mutt/<account1>
# macro index <f2> '<sync-mailbox><enter-command>source \~/.mutt/<account1><enter><change-folder>!<enter>'
# macro index <f3> '<sync-mailbox><enter-command>source \~/.mutt/<account2><enter><change-folder>!<enter>'
# sidebar (for mutt-patched) # sidebar (for mutt-patched)
# bind index,pager \Cp sidebar-prev # bind index,pager \Cp sidebar-prev
# bind index,pager \Cn sidebar-next # bind index,pager \Cn sidebar-next