diff options
Diffstat (limited to 'mutt/muttrc')
-rw-r--r-- | mutt/muttrc | 192 |
1 files changed, 86 insertions, 106 deletions
diff --git a/mutt/muttrc b/mutt/muttrc index e8f47b3..0004af6 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -1,13 +1,21 @@ # mutt -## sources +## folders + +macro index <f1> "<sync-mailbox><enter-command>source ~/.mutt/paulk/muttrc<enter><change-folder>!<enter>" +macro index <f2> "<sync-mailbox><enter-command>source ~/.mutt/bootlin/muttrc<enter><change-folder>!<enter>" + +source "$HOME/.mutt/muttrc-colors" +source "$HOME/.mutt/bootlin/muttrc" -source "gpg2 -dq $HOME/.mutt/passwords.gpg |" +## pager + +bind pager "<up>" previous-line +bind pager "<down>" next-line ## encoding set charset="UTF-8" -set locale="fr_FR.UTF-8" set assumed_charset="UTF-8" set config_charset="UTF-8" set send_charset="UTF-8" @@ -15,10 +23,48 @@ set send_charset="UTF-8" unset meta_key unset allow_8bit +## ssl + +set ssl_starttls=yes +set ssl_force_tls=yes + +## pgp + +set pgp_decode_command="gpg --no-verbose --batch --output - %f" +set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f" +set pgp_decrypt_command="gpg --no-verbose --batch --output - %f" +set pgp_sign_command="gpg --no-verbose --batch --output - --armor --detach-sign --textmode %?a?-u %a? %f" +set pgp_clearsign_command="gpg --no-verbose --batch --output - --armor --textmode --clearsign %?a?-u %a? %f" + +set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" +set pgp_encrypt_sign_command="pgpewrap gpg --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" + +set pgp_import_command="gpg --no-verbose --import -v %f" +set pgp_export_command="gpg --no-verbose --export --armor %r" +set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r" +set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r" +set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r" +set pgp_good_sign="^gpg: Good signature from" +set pgp_use_gpg_agent=yes + +## crypt + +set crypt_autopgp=yes +set crypt_autosign=yes +set crypt_replyencrypt=yes +set crypt_replysignencrypted=yes + ## alternatives alternative_order text/plain text/enriched text text/html +## mailcap + +set mailcap_path="~/.mutt/mailcap" +bind attach <return> view-mailcap + +auto_view text/html + ## headers ignore * @@ -32,137 +78,71 @@ hdr_order From: To: Date: CC: Subject: color normal white black color quoted cyan black color hdrdefault yellow black -color tree cyan black -color status cyan blue -color indicator black cyan +color tree blue black +color status black yellow +color indicator black blue + color search black magenta color signature yellow black -## macros - -macro index,pager <Tab> "<change-folder>?<toggle-mailboxes>" "Show incoming mailboxes list" - -## imap - -set imap_user=paulk -set imap_pass=$my_pw_personal -set folder="imap://paulk@gagarine.paulk.fr/" -set spoolfile=+inbox +color sidebar_highlight black yellow +color sidebar_flagged red black +color sidebar_divider blue black +color sidebar_new yellow black -#set imap_list_subscribed=yes -#set imap_check_subscribed=yes - -## smtp +## macros -set smtp_url="smtp://$imap_user:$imap_pass@gagarine.paulk.fr" +#macro index,pager <Tab> "<change-folder>?<toggle-mailboxes>" "Show incoming mailboxes list" -## ssl +## notification -set ssl_starttls=yes -set ssl_force_tls=yes - -## cache - -set header_cache="~/.cache/mutt" -set message_cachedir="~/.cache/mutt" +set mail_check=60 +set new_mail_command="notify-send -i email 'New mail' 'New mail in %b mailboxe(s)' &" ## display -set date_format="%d/%m/%y %H:%M" -set index_format="%C/%m - %D %S %n - %s" -set folder_format="%C - %3s %N %f" -set status_format="%v - %f - %u/%m" +set date_format="!%a %d %b %y, %H:%M" +set index_format="%-20.20D - %-20.20n %S %s" +set folder_format="%2C %5s %N %f" +set status_format="%v %f %u/%m" -set strict_threads="yes" +set strict_threads=yes +set sort=threads set sort_browser=reverse-date set sort_aux=last-date-received + set sleep_time=0 -set beep_new="yes" +set beep_new="no" set check_new="yes" -## folders - -set record=+sent -set postponed=+drafts - ## compose -set editor="gedit --wait" +set editor="gedit -s" set fast_reply=yes ## reply set reply_regexp="^((re|Re|RE)([\[0-9\]+])*|aw)[ \t]*:[ \t]*" -## mailcap - -set mailcap_path="~/.mutt/mailcap" -bind attach <return> view-mailcap - -## gpg - -set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f" -set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f" -set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f" -set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f" -set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f" -set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to 01B70C5D940CB63D5FA612C284FDC1EA8FEE950C -- -r %r -- %f" -set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 01B70C5D940CB63D5FA612C284FDC1EA8FEE950C -- -r %r -- %f" -set pgp_import_command="gpg --no-verbose --import -v %f" -set pgp_export_command="gpg --no-verbose --export --armor %r" -set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r" -set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r" -set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r" -set pgp_autosign=yes -set pgp_sign_as=01B70C5D940CB63D5FA612C284FDC1EA8FEE950C -set pgp_replyencrypt=yes -set pgp_timeout=1800 -set pgp_good_sign="^gpg: Good signature from" -set pgp_use_gpg_agent=yes - -set crypt_autosign=yes -set crypt_replysignencrypted=yes -set crypt_verify_sig=yes - -message-hook '!(~g|~G) ~b"^-----BEGIN\ PGP\ (SIGNED\ )?MESSAGE"' "exec check-traditional-pgp" - -# identity - -set realname="Paul Kocialkowski" -set from="contact@paulk.fr" -set use_from=yes - -# alternates - -alternates "(paulk@paulk\.fr)|(contact@paulk\.fr)|(paulk@replicant\.us)|(paulk@embedded-freedom\.org)" - -# hooks - -folder-hook . set sort=threads -folder-hook contact set sort=date-sent -folder-hook contact/patches set sort=threads -folder-hook replicant set sort=date-sent -folder-hook replicant/notifications set sort=threads -folder-hook embedded-freedom set sort=date-sent - -folder-hook inbox set from="paulk@paulk.fr" -folder-hook contact set from="contact@paulk.fr" -folder-hook replicant set from="paulk@replicant.us" -folder-hook embedded-freedom set from="paulk@embedded-freedom.org" +## identity -send-hook "~f paulk@paulk.fr" unset signature -reply-hook "~f paulk@paulk.fr" unset signature +set reverse_name=yes +#set use_from=yes -send-hook "~f contact@paulk.fr" set signature="~/.mutt/signatures/paulk" -reply-hook "~f contact@paulk.fr" set signature="~/.mutt/signatures/paulk" +## sidebar -send-hook "~f paulk@replicant.us" set signature="~/.mutt/signatures/replicant" -reply-hook "~f paulk@replicant.us" set signature="~/.mutt/signatures/replicant" +set sidebar_width=24 +set sidebar_visible=yes +set sidebar_divider_char="│" +set sidebar_folder_indent=yes -send-hook "~f paulk@embedded-freedom.org" unset signature -reply-hook "~f paulk@embedded-freedom.org" unset signature +bind index,pager <Tab> "sidebar-toggle-visible" -# mailboxes +bind index,pager <C-Up> sidebar-prev +bind index,pager <C-Down> sidebar-next +bind index,pager <C-Right> sidebar-open -mailboxes +inbox +contact +contact/patches +embedded-freedom +replicant +replicant/notifications +sent +bind index ! flag-message +bind index - collapse-all +bind index _ collapse-thread |