muttrc error config
This commit is contained in:
parent
04b51bb87c
commit
de2043de66
|
@ -1,4 +1,4 @@
|
|||
|
||||
# mutt config - private datas
|
||||
set realname = 'Patrick Cao Huu Thien'
|
||||
set from = 'patrick.cao_huu_thien@sorbonne-universite.fr'
|
||||
alternates '^patrick.cao_huu_thien@'
|
||||
|
@ -15,23 +15,23 @@ set use_domain
|
|||
# SMTP
|
||||
#
|
||||
# heywood dont handle TLS -- too old version
|
||||
set smtp_url=smtp://heywood.dalembert.upmc.fr
|
||||
unset ssl_force_tls
|
||||
unset ssl_starttls
|
||||
set smtp_url=smtps://imap.dalembert.upmc.fr
|
||||
# unset ssl_force_tls
|
||||
# unset ssl_starttls
|
||||
# set smtp_url=smtp://mail.lam.jussieu.fr
|
||||
|
||||
#
|
||||
# accounts
|
||||
#
|
||||
source /home/patrick/.mutt/accounts/upmc-offline
|
||||
source /home/patrick/.mutt/accounts/default
|
||||
|
||||
macro generic \Cx0 "\Cx| ~/.mutt/accounts/upmc-offline\"\n\Cx&1\"<enter><change-folder>!<enter>"
|
||||
macro generic \Cx1 "\Cx| ~/.mutt/accounts/gmail-offline\"\n\Cx&0\"<enter><change-folder>!<enter>"
|
||||
macro generic \Cx0 "\Cx| ~/.mutt/accounts/default\"\n\Cx&1\"<enter><change-folder>!<enter>"
|
||||
macro generic \Cx1 "\Cx| ~/.mutt/accounts/gmail\"\n\Cx&0\"<enter><change-folder>!<enter>"
|
||||
|
||||
# switch account with <tab>
|
||||
macro index <tab> "\Cx1"
|
||||
macro index <f2> '<sync-mailbox><enter-command>source ~/.mutt/accounts/upmc-offline<enter><change-folder>!<enter>'
|
||||
macro index <f3> '<sync-mailbox><enter-command>source ~/.mutt/accounts/gmail-offline<enter><change-folder>!<enter>'
|
||||
macro index <f2> '<sync-mailbox><enter-command>source ~/.mutt/accounts/default<enter><change-folder>!<enter>'
|
||||
macro index <f3> '<sync-mailbox><enter-command>source ~/.mutt/accounts/gmail<enter><change-folder>!<enter>'
|
||||
|
||||
|
||||
|
||||
|
|
78
muttrc-lhote
78
muttrc-lhote
|
@ -1,3 +1,6 @@
|
|||
# mutt config commun
|
||||
#
|
||||
# from https://github.com/Nelyah/dotfiles/blob/master/.mutt/settings
|
||||
|
||||
set use_envelope_from=yes
|
||||
|
||||
|
@ -14,9 +17,9 @@ set header_cache = ~/.mutt/cache/headers # where to store headers
|
|||
set message_cachedir = ~/.mutt/cache/bodies # where to store bodies
|
||||
set certificate_file = ~/.mutt/certificates # where to store certs
|
||||
set tmpdir = ~/.mutt/temp # where to keep temp files
|
||||
set print = ask-yes
|
||||
set print_command = lp
|
||||
set ispell = "aspell check"
|
||||
set mbox_type = "MailDir"
|
||||
|
||||
#
|
||||
# general
|
||||
|
@ -24,8 +27,11 @@ set mbox_type = "MailDir"
|
|||
set mail_check=90 # check mail every (s)
|
||||
set timeout=15 # wait only (s) max
|
||||
set editor='vim "+set spelllang=fr"'
|
||||
set nowait_key
|
||||
set wait_key=no
|
||||
set user_agent=yes
|
||||
set mime_forward=yes # set forward message as attach and not in text
|
||||
set pipe_decode=yes
|
||||
set pipe_decode_weed=yes
|
||||
|
||||
# text/html ....
|
||||
alternative_order text/plain text/html
|
||||
|
@ -69,6 +75,10 @@ bind generic '"' what-key # print key code -- ctrl+g to quit
|
|||
bind index G imap-fetch-mail # force fetch new email
|
||||
bind index K previous-unread
|
||||
bind index J next-unread
|
||||
bind index \ct tag-thread
|
||||
# TODO macro index <Esc>t <enter-command>untag-pattern<enter>
|
||||
|
||||
|
||||
bind pager <pageup> half-up
|
||||
bind pager <up> half-up
|
||||
bind pager <pagedown> half-down
|
||||
|
@ -77,39 +87,43 @@ bind pager <down> half-down
|
|||
#
|
||||
# Macros
|
||||
#
|
||||
macro index <esc>T <untag-pattern>
|
||||
|
||||
# urlscan/urlview
|
||||
# FIXME BROKEN macro index,pager \cb "<pipe-message>urlscan<enter>" "open URL in urlscan"
|
||||
macro index,pager \cb "<pipe-message>urlview<enter>" "open URL in urlview"
|
||||
|
||||
# save messages
|
||||
macro index >C <tag-prefix><save-message>=CSSI<enter> 'save to CSSI'
|
||||
macro index >i <tag-prefix><save-message>=dalembert-inscription<enter> 'save to IMPRIMANTES'
|
||||
macro index ,i "<limit>Demande.*inscription<Enter>" "view logwatch"
|
||||
macro index >I <tag-prefix><save-message>=SERVICE.INFO<enter> 'save to service info'
|
||||
macro index >L <tag-prefix><save-message>=logwatchs<enter> 'save to logwatchs'
|
||||
macro index ,l "<limit>logwatch<Enter>" "view logwatch"
|
||||
macro index >N <tag-prefix><save-message>=netdata<enter> 'save to netdata'
|
||||
macro index >P <tag-prefix><save-message>=2019-2020-PYL<enter> 'Le chef'
|
||||
macro index >S <tag-prefix><save-message>=SPAM<enter> 'save to SPAM'
|
||||
macro index >V <tag-prefix><save-message>=VLAN<enter> 'save to VLAN'
|
||||
macro index ,v "<limit>vlan<Enter>" "view vlan"
|
||||
|
||||
|
||||
# urlscan
|
||||
macro index,pager \cb "<pipe-message>urlscan<enter>" "open URL in urlscan"
|
||||
|
||||
# limit to new/old/flag messages
|
||||
# filtres to new/old/flag messages
|
||||
macro index ,a "<limit>~A<Enter>" "Voir: all"
|
||||
macro index ,n "<limit>(~N|~O|~F)<Enter>" "Voir: new/flag"
|
||||
macro index ,m "<limit>(~N|~O)(~p|~P|~C info@|~C printers@|~C proxmox@|~s monit)|~F<Enter>" "Voir: new+from/to me"
|
||||
macro index ,M "<limit>(~p|~P|~C info@|~C printers@|~C proxmox@|~s monit)|~F<Enter>" "Voir: from/to me"
|
||||
macro index ,m "<limit>(~N|~O)(~p|~P|~C info@)|~C printers@|~C proxmox@|~s 'monit alert'|~s SMART|~F<Enter>" "Voir: new+from/to me"
|
||||
macro index ,M "<limit>(~p|~P|~C info@|~C printers@)|~C proxmox@|~s 'monit alert'|~s SMART|~F<Enter>" "Voir: from/to me"
|
||||
macro index ,t "<limit>(~N|~O|~F) ~C tout.?ida@<Enter>" "Voir: new+toutida"
|
||||
macro index ,T "<limit>~C tout.?ida@<Enter>" "Voir: toutida"
|
||||
# filtres autres
|
||||
macro index ,i "<limit>Demande.*inscription<Enter>" "view logwatch"
|
||||
macro index >i <tag-prefix><save-message>=dalembert-inscription<enter> 'save to IMPRIMANTES'
|
||||
macro index,pager .i "<tag-prefix><pipe-message>mutt_process | LESS=-RC less<enter>"
|
||||
# macro index,pager .i ":set wait_key=yes<enter><tag-prefix><pipe-message>mutt_inscription<enter>:set wait_key=no<enter>"
|
||||
# macro index /c "<limit>~C su-adherents|~C diffusion-fercsup|~C bureau-sntrsjussieu|~C communication-syndicale|~C commob_jussieu|~s CGT|~s 'commission sociale'<Enter>" "view listes CGT"
|
||||
macro index ,c "<limit>~C corresp_ssi@services.cnrs.fr | ~C cssi_dr2@services.cnrs.fr | ~C netadmin@listes.sorbonne-universite.fr | ~c cssi@listes.sorbonne-universite.fr | ~f support@cert-manager.com | ~s genci <Enter>" "view CSSI"
|
||||
macro index >C <tag-prefix><save-message>=CSSI<enter> 'save to CSSI'
|
||||
macro index ,l "<limit>logwatch|cron<Enter>" "view logwatch"
|
||||
macro index >L <tag-prefix><save-message>=logwatchs<enter> 'save to logwatchs'
|
||||
macro index ,v "<limit>~f @brahma<Enter>" "view brahma logs"
|
||||
macro index >V <tag-prefix><save-message>=VLAN<enter> 'save to VLAN'
|
||||
|
||||
macro index /a "<limit>~C asr@services.cnrs.fr<Enter>" "Voir: liste-ASR"
|
||||
# listes
|
||||
macro index >A <tag-prefix><save-message>=liste-ASR<enter> "save to liste-ASR"
|
||||
macro index /h "<limit>~C hackesr@groupes.renater.fr<Enter>" "Voir: liste-hackesr"
|
||||
macro index >H <tag-prefix><save-message>=liste-hackesr<enter> "save to liste-hackesr"
|
||||
macro index /d "<limit>~C @lists.debian.org<Enter>" "Voir: liste-Debian"
|
||||
macro index >D <tag-prefix><save-message>=liste-DEBIAN<enter> "save to liste-DEBIAN"
|
||||
macro index /l "<limit>(~C @listes.upmc.fr|~C @services.cnrs.fr|~C @groupes.renater.fr|~C @pmichaud.com)<Enter>" "Voir: Listes pro"
|
||||
macro index >H <tag-prefix><save-message>=liste-hackesr<enter> "save to liste-hackesr"
|
||||
macro index /l "<limit>(~C @listes.sorbonne-universite.fr|~C @listes.upmc.fr|~C @services.cnrs.fr|~C @groupes.renater.fr|~C @pmichaud.com|~C @lists.debian.org)<Enter>" "Voir: Listes"
|
||||
macro index /m "<limit>monit<Enter>" "Voir: monit"
|
||||
|
||||
# get new messages by default
|
||||
|
@ -138,6 +152,9 @@ set date_format = "%d %b %Y a %H:%M:%S %Z"
|
|||
set attribution_locale = "fr_FR.UTF-7"
|
||||
set attribution="Le %d, %n a écrit :"
|
||||
|
||||
# delete duplicate messages
|
||||
folder-hook . push "<delete-pattern>~=<enter>"
|
||||
|
||||
#
|
||||
# headers
|
||||
#
|
||||
|
@ -166,6 +183,25 @@ macro generic \Cx| "<enter-command>source"
|
|||
macro generic \Cx& "<enter-command>macro index \\t \"\\Cx"
|
||||
source $HOME/.mutt/muttrc-accounts
|
||||
|
||||
#
|
||||
# GPG
|
||||
#
|
||||
source $HOME/.mutt/gpg.rc
|
||||
set crypt_autosign = yes
|
||||
set crypt_replysign = yes
|
||||
set crypt_replyencrypt = yes
|
||||
set crypt_replysignencrypted = yes
|
||||
set crypt_protected_headers_write = yes # protect subject
|
||||
set crypt_protected_headers_subject = 'Sujet Sensible (chiffré)'
|
||||
# OLD set pgp_default_key = D7B87DFB479CA02E48A2383C00054A3358D16D27
|
||||
set pgp_default_key = A8F721C80E43073F40DF8F21B57DBE40C72FBCF4
|
||||
|
||||
# auto attach pub key from https://stackoverflow.com/a/67065558
|
||||
# Esc-k pour inclure manuellement
|
||||
macro compose y "<attach-key>`echo A8F721C80E43073F40DF8F21B57DBE40C72FBCF4`<enter><enter><send-message>"
|
||||
macro compose Y "<send-message>"
|
||||
|
||||
|
||||
#
|
||||
# Query : ldap
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue