[mail] refactor: use env variables

This commit is contained in:
David JULIEN 2022-10-17 10:36:36 +02:00
parent 32c794954f
commit 48b48db3b7
2 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
# vim: filetype=neomuttrc
source /home/swytch/.config/mutt/neomutt.muttrc
macro index,pager ip '<sync-mailbox><enter-command>source /home/swytch/.config/mutt/accounts/1-david.julien@posteo.net.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@posteo.net"
macro index,pager is '<sync-mailbox><enter-command>source /home/swytch/.config/mutt/accounts/2-david.julien@ens-lyon.fr.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@ens-lyon.fr"
macro index,pager im '<sync-mailbox><enter-command>source /home/swytch/.config/mutt/accounts/3-david.julien@mailo.com.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@mailto.com"
macro index,pager ic '<sync-mailbox><enter-command>source /home/swytch/.config/mutt/accounts/4-david.julien@centrale-marseille.fr.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@centrale-marseille.fr"
source /home/swytch/.config/mutt/accounts/2-david.julien@ens-lyon.fr.muttrc
source $XDG_CONFIG_HOME/mutt/neomutt.muttrc
macro index,pager ip '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/mutt/accounts/1-david.julien@posteo.net.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@posteo.net"
macro index,pager is '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/mutt/accounts/2-david.julien@ens-lyon.fr.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@ens-lyon.fr"
macro index,pager in '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/mutt/accounts/2-david.julien@etu.univ-nantes.fr.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@etu.univ-nantes.fr"
macro index,pager im '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/mutt/accounts/3-david.julien@mailo.com.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@mailto.com"
source $XDG_CONFIG_HOME/mutt/accounts/2-david.julien@etu.univ-nantes.fr.muttrc

View File

@ -9,8 +9,8 @@ set date_format="%d/%m/%y %I:%M%p"
set index_format="%2C %Z %?X?A& ? %D %-15.15F %s (%-4.4c)"
set sort = 'reverse-date'
set smtp_authenticators = 'gssapi:login'
set my_abook = "abook --config /home/swytch/.config/abook/abookrc --datafile \
/home/swytch/.local/share/abook/addressbook"
set my_abook = "abook --config $XDG_CONFIG_HOME/abook/abookrc --datafile \
$XDG_DATA_HOME/abook/addressbook"
set query_command = "$my_abook --mutt-query '%s'"
set rfc2047_parameters = yes
set sleep_time = 0 # Pause 0 seconds for informational messages