mutt: Move config to .config/mutt, mutt.d to .local/share
parent
038db51b6f
commit
03977345f9
|
@ -16,7 +16,7 @@ set ssl_force_tls=yes
|
||||||
unset ssl_starttls
|
unset ssl_starttls
|
||||||
|
|
||||||
## Signature with a random 'fortune'.
|
## Signature with a random 'fortune'.
|
||||||
set signature="cat ~/.mutt/real_name && fortune -s |"
|
set signature="cat $my_localdir/real_name && fortune -s |"
|
||||||
|
|
||||||
## Sidebar mailboxes separator workaround.
|
## Sidebar mailboxes separator workaround.
|
||||||
mailboxes "+~~~~~~~~~~~~~~~~~~~~~~~~"
|
mailboxes "+~~~~~~~~~~~~~~~~~~~~~~~~"
|
|
@ -3,9 +3,13 @@
|
||||||
## This configuration is made for Mutt with embedded IMAP support.
|
## This configuration is made for Mutt with embedded IMAP support.
|
||||||
|
|
||||||
## These folders are assumed to exist:
|
## These folders are assumed to exist:
|
||||||
## ~/.mutt.d: personal stuff (contacts, account information).
|
## Cache for headers and messages:
|
||||||
## ~/.mutt: public stuff (config, theme, mailcap).
|
set header_cache=~/.cache/mutt/headers
|
||||||
## ~/.cache/mutt: cache for headers and messages.
|
set message_cachedir=~/.cache/mutt/messages
|
||||||
|
## Public data (config, theme, mailcap):
|
||||||
|
set my_configdir=~/.config/mutt
|
||||||
|
## personal data (contacts, account information):
|
||||||
|
set my_localdir=~/.local/share/mutt
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
## General options.
|
## General options.
|
||||||
|
@ -24,7 +28,7 @@ set pgp_timeout=3600
|
||||||
set edit_headers=yes
|
set edit_headers=yes
|
||||||
|
|
||||||
## Set EDITOR dynamically.
|
## Set EDITOR dynamically.
|
||||||
source "~/.mutt/maileditor.sh|"
|
source "$my_configdir/maileditor.sh|"
|
||||||
|
|
||||||
## Don't ask for recipient. We usually don't want to include mail unless we want
|
## Don't ask for recipient. We usually don't want to include mail unless we want
|
||||||
## to quote it.
|
## to quote it.
|
||||||
|
@ -35,9 +39,7 @@ set include_onlyfirst=yes
|
||||||
## Store message headers locally to speed things up. Gentoo wiki says that if a
|
## Store message headers locally to speed things up. Gentoo wiki says that if a
|
||||||
## folder is specified, it is even faster. If no folder exists, the cache will
|
## folder is specified, it is even faster. If no folder exists, the cache will
|
||||||
## be a single file.
|
## be a single file.
|
||||||
set header_cache=~/.cache/mutt/headers
|
source "$my_configdir/purgecache.sh $message_cachedir|"
|
||||||
set message_cachedir=~/.cache/mutt/messages
|
|
||||||
source "~/.mutt/purgecache.sh $message_cachedir|"
|
|
||||||
|
|
||||||
## Tell Mutt to check all IMAP folders. This will add all of them to the sidebar
|
## Tell Mutt to check all IMAP folders. This will add all of them to the sidebar
|
||||||
## (if used). Contrary to the 'mailboxes' menu, sorting order cannot be
|
## (if used). Contrary to the 'mailboxes' menu, sorting order cannot be
|
||||||
|
@ -54,7 +56,7 @@ set mail_check=60
|
||||||
set mail_check_stats=yes
|
set mail_check_stats=yes
|
||||||
|
|
||||||
## Mailcap
|
## Mailcap
|
||||||
set mailcap_path=~/.mutt/mailcap
|
set mailcap_path=$my_configdir/mailcap
|
||||||
auto_view text/html
|
auto_view text/html
|
||||||
alternative_order text/plain text/html
|
alternative_order text/plain text/html
|
||||||
|
|
||||||
|
@ -109,22 +111,22 @@ set strict_threads=yes
|
||||||
# source "gpg2 -dq ~/.mutt.pwds.gpg |"
|
# source "gpg2 -dq ~/.mutt.pwds.gpg |"
|
||||||
##
|
##
|
||||||
## Source accounts. Default account is last.
|
## Source accounts. Default account is last.
|
||||||
# source "~/.mutt.d/personal"
|
# source "$my_localdir/personal"
|
||||||
# folder-hook $folder 'source ~/.mutt.d/personal'
|
# folder-hook $folder 'source $my_localdir/personal'
|
||||||
# source "~/.mutt.d/work"
|
# source "$my_localdir/work"
|
||||||
# folder-hook $folder 'source ~/.mutt.d/work'
|
# folder-hook $folder 'source $my_localdir/work'
|
||||||
##
|
##
|
||||||
## You can add an optional binding to switch mailboxes:
|
## You can add an optional binding to switch mailboxes:
|
||||||
# macro index,pager <f2> '<enter-command>source ~/.mutt.d/personal<enter><change-folder>!<enter>'
|
# macro index,pager <f2> '<enter-command>source $my_localdir/personal<enter><change-folder>!<enter>'
|
||||||
# macro index,pager <f3> '<enter-command>source ~/.mutt.d/work<enter><change-folder>!<enter>'
|
# macro index,pager <f3> '<enter-command>source $my_localdir/work<enter><change-folder>!<enter>'
|
||||||
|
|
||||||
source "~/.mutt.d/accountrc"
|
source "$my_localdir/accountrc"
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
## Aliases.
|
## Aliases.
|
||||||
|
|
||||||
## Mutt native support.
|
## Mutt native support.
|
||||||
# set alias_file = "~/.mutt.d/aliases"
|
# set alias_file = "$my_localdir/aliases"
|
||||||
# set sort_alias = alias
|
# set sort_alias = alias
|
||||||
# set reverse_alias = yes
|
# set reverse_alias = yes
|
||||||
# source $alias_file
|
# source $alias_file
|
||||||
|
@ -146,7 +148,7 @@ bind editor <Tab> complete-query
|
||||||
bind generic,alias,attach,browser,editor,index,compose,pager,pgp,postpone ':' noop
|
bind generic,alias,attach,browser,editor,index,compose,pager,pgp,postpone ':' noop
|
||||||
|
|
||||||
## HTML mail view with graphical Internet browser.
|
## HTML mail view with graphical Internet browser.
|
||||||
macro attach 'V' "<pipe-entry>~/.mutt/view-html.sh<enter>"
|
macro attach 'V' "<pipe-entry>$my_configdir/view-html.sh<enter>"
|
||||||
|
|
||||||
## Remap bounce-message function to "B"
|
## Remap bounce-message function to "B"
|
||||||
bind index B bounce-message
|
bind index B bounce-message
|
||||||
|
@ -246,19 +248,19 @@ set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del
|
||||||
macro index,pager \CL "<enter-command>$my_index_format_pre"F"$my_index_format_post<enter><redraw-screen>"
|
macro index,pager \CL "<enter-command>$my_index_format_pre"F"$my_index_format_post<enter><redraw-screen>"
|
||||||
|
|
||||||
## Set color variables from a theme.
|
## Set color variables from a theme.
|
||||||
# source "~/.mutt/colors.classic"
|
# source "$my_configdir/colors.classic"
|
||||||
source "~/.mutt/colors.zenburn"
|
source "$my_configdir/colors.zenburn"
|
||||||
|
|
||||||
## Fallback for terminals without 256 colors. This needs to be a shell script so
|
## Fallback for terminals without 256 colors. This needs to be a shell script so
|
||||||
## that it can check for terminal capabilities.
|
## that it can check for terminal capabilities.
|
||||||
source "~/.mutt/colors.fallback.sh |"
|
source "$my_configdir/colors.fallback.sh |"
|
||||||
|
|
||||||
## Apply theme.
|
## Apply theme.
|
||||||
source "~/.mutt/theme"
|
source "$my_configdir/theme"
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
## Sidebar.
|
## Sidebar.
|
||||||
|
|
||||||
## We use a script to test if sidebar is installed. Needs to be loaded _after_
|
## We use a script to test if sidebar is installed. Needs to be loaded _after_
|
||||||
## the theme.
|
## the theme.
|
||||||
source "~/.mutt/sidebar.sh|"
|
source "$my_configdir/sidebar.sh|"
|
|
@ -13,7 +13,7 @@ echo "==> Abook"
|
||||||
ln -snfv "$SOURCEDIR/contacts" "$HOME/.abook"
|
ln -snfv "$SOURCEDIR/contacts" "$HOME/.abook"
|
||||||
|
|
||||||
echo "==> Mutt"
|
echo "==> Mutt"
|
||||||
[ -d "$SOURCEDIR/mails" ] && ln -snf "$SOURCEDIR/mails" "$HOME/.mutt.d"
|
[ -d "$SOURCEDIR/mails" ] && ln -snf "$SOURCEDIR/mails" "$XDG_DATA_HOME/mutt"
|
||||||
mkdir -pv "$HOME/.cache/mutt/headers"
|
mkdir -pv "$HOME/.cache/mutt/headers"
|
||||||
mkdir -pv "$HOME/.cache/mutt/messages"
|
mkdir -pv "$HOME/.cache/mutt/messages"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue