homes/desktop/.config/neomutt/neomuttrc

237 lines
8.7 KiB
Text

#setenv TERM xterm-direct
unhdr_order *
ignore * # ignore tous les headers, unignore plus tard
###### General mail config
set sendmail = "send-from-mutt"
my_hdr X-Operating-System: `lsb_release -a | grep "^Description:" | sed "s/Description:[\t ]*//"`
my_hdr Markdown: false
my_hdr reStructuredText: false
# h key show all headers
hdr_order Date From X-Sender Old-Return-Path Reply-To Mail-Followup-To To Cc Bcc
hdr_order Delivered-To Subject In-Reply-To X-Mailing-List Mailing-List
hdr_order X-Operating-System X-Mailer User-Agent X-GPG- X-PGP-
unignore Date From X-Sender Old-Return-Path Reply-To Mail-Followup-To To Cc Bcc
unignore Delivered-To Subject In-Reply-To X-Mailing-List Mailing-List
unignore X-Operating-System X-Mailer User-Agent X-GPG- X-PGP-
set color_directcolor = true
set charset = UTF-8
set shell = "/usr/bin/fish"
set sort = reverse-date-received
set sort_aux = date-received
set sort_browser = "alpha"
set edit_headers = yes
set askbcc = yes
set askcc = yes
set reply_to = ask-yes
set reply_with_xorig = yes
set copy = yes
set include
set editor = 'nvim -c "set textwrap=0" -c "set nowrap" -c "?^$"'
alternative_order text/html text/enriched text/plain
set beep_new = yes
set include = yes
set abort_nosubject = ask-yes
set abort_unmodified = ask-yes
set abort_noattach = ask-yes
set abort_noattach_regex = "\\<(attaché|attachés|attache|attachons|joint|jointe|joints|jointes|joins|joignons|attached|attachments?|bijvoegen|bijgevoegd|bijlage|bijlagen)\\>"
set header_cache = "~/.local/share/neomutt/cache/headers"
set message_cachedir = "~/.local/share/neomutt/cache/bodies"
set certificate_file = "~/.local/share/neomutt/certificates"
source ~/.config/neomutt/colors.conf
###### General keys config
# mutt sidebar settings
bind index,pager \Cp sidebar-prev
bind index,pager \Cn sidebar-next
bind index,pager \Co sidebar-open
bind index <tab> next-unread
bind index,pager @ compose-to-sender
bind index <esc>L limit-current-thread
bind index,pager \et modify-labels
bind index,pager X change-vfolder
bind index,pager + entire-thread
bind index,pager \eX vfolder-from-query
bind index < vfolder-window-backward
bind index > vfolder-window-forward
macro index,pager B '<enter-command>toggle sidebar_visible<enter>'
macro index,pager a "<pipe-message>khard add-email<return>" "Ajouter l'expéditeur au carnet"
macro index,pager \eT "<modify-labels>!todo\n" "Inverser le tag 'todo'"
macro index,pager \eK "<modify-labels>!killed\n" "Inverser le tag 'todo'"
set query_command= "khard email -p %s | awk -F\" +\" '{print $1 $3}'"
bind editor <Tab> complete-query
bind editor ^T complete
macro index,pager G "notmuch new"
# TODO macro index,pager c "<change-folder>?<toggle-mailboxes>" "open a different folder"
###### General display config
set nobeep
set braille_friendly
set strict_threads = yes # important, do not group all "Hey" messages
set use_threads = threads
auto_view text/plain text/html application/x-pgp-message
set mailcap_path="~/.config/mailcap"
set mailcap_sanitize=yes
set allow_ansi=yes
set date_format="%y.%m.%d"
set alias_format="%4n %2f %t %-10a %r"
set attach_format="%u%D%I %t%4n %s %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?] "
set compose_format="NeoMutt Compose%> [Approx. taille: %l Fichiers: %a]"
set folder_format="%2C %t%N %f%> %?m?%n/%m%? %s %D"
set forward_format="[%a: %s]"
set index_format="%4C %H %Z %d %4c %-15.15L %g %s"
set pager_format="%Z %C/%m: %-20.20n %s%* %P"
set pgp_entry_format="%4n %t%f %4l/0x%k %-4a %2c %u"
set query_format="%4c %t %-25.25a %-25.25n %?e?(%e)?"
set sidebar_format="%B%* %n"
set status_format="%r %-15.15f [%?M?%M/?%m%?n? N%n?%?o? O%o?%?d? D%d?%?F? F%F?%?t? T%t?%?p? P%p?%?b? I%b?%?l? %l?]%> (%-10.10s/%-5.5S) (%P)"
set pager_read_delay = 5
set sidebar_divider_char = "█"
set sidebar_visible = no
set sidebar_width = 20
set sidebar_folder_indent = yes
set sidebar_short_path
set sidebar_indent_string = " "
set mail_check_stats
set net_inc=5
set write_inc=5
unignore organization organisation x-mailer: x-newsreader: x-mailing-list: x-original-to:
unignore posted-to:
tag-transforms "inbox" "i" \
"unread" "u" \
"new" "󰧫n" \
"lists" "L" \
"replied" "r" \
"forwarded" "f" \
"sent" "s" \
"flagged" "F" \
"todo" "t" \
"deleted" "D" \
"encrypted" "e" \
"invites" "󰃰c" \
"attachment" "󰁦a" \
"signed" "󱧃Sig" \
"dkim-ok" "󱝗DK" \
"spam" "S" \
"invoice" "I" \
"acbraine" "󰝚M" \
"killed" "K" REPLACE_WITH_TAG_TRANSFORMS
set hidden_tags = ""
###### General GPG config
set crypt_autosign
set crypt_replyencrypt
set crypt_replysign
set crypt_replysignencrypted
# decode application/pgp
set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
# verify a pgp/mime signature
set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f"
# decrypt a pgp/mime attachment
set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
# create a pgp/mime signed attachment
# set pgp_sign_command="gpg-2comp --comment '' --no-verbose --batch --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
# create a application/pgp signed (old-style) message
# set pgp_clearsign_command="gpg-2comp --comment '' --no-verbose --batch --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f"
# create a pgp/mime encrypted attachment
# set pgp_encrypt_only_command="pgpewrap gpg-2comp -v --batch --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_only_command="/usr/bin/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
# create a pgp/mime encrypted and signed attachment
# set pgp_encrypt_sign_command="pgpewrap gpg-2comp %?p?--passphrase-fd 0? -v --batch --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_sign_command="/usr/bin/pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
# import a key into the public key ring
set pgp_import_command="gpg --no-verbose --import %f"
# export a key from the public key ring
set pgp_export_command="gpg --no-verbose --export --armor %r"
# verify a key
set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r"
# read in the public key ring
set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --list-keys %r"
# read in the secret key ring
set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --list-secret-keys %r"
# fetch keys
# set pgp_getkeys_command="pkspxycwrap %r"
# This will work when #172960 will be fixed upstream
# set pgp_getkeys_command="gpg --recv-keys %r"
# pattern for good signature - may need to be adapted to locale!
# set pgp_good_sign="^gpgv?: Good signature from "
# OK, here's a version which uses gnupg's message catalog:
# set pgp_good_sign="`gettext -d gnupg -s 'Good signature from "' | tr -d '"'`"
# This version uses --status-fd messages
set pgp_good_sign="^\\[GNUPG:\\] GOODSIG"
set use_envelope_from = yes
set reverse_name = yes
set reverse_realname = yes
spam "X-DCC-.*-Metrics:.*(....)=many" "90+/DCC-%1"
spam "X-Spam-Status: Yes" "90+/SA"
spam "X-PerlMX-Spam: .*Probability=([0-9]+)%" "%1/PM"
set spam_separator=", "
set virtual_spoolfile = yes
set folder = "~/.local/share/mail/"
#set nm_config_file = "~/.config/notmuch/notmuch-config"
set nm_default_url = "notmuch://REPLACEHOME/.local/share/mail"
set nm_query_window_or_terms="tag:unread and tag:flagged"
set nm_query_type = "threads"
set nm_exclude_tags = "killed,deleted,spam"
set nm_record_tags = "-inbox,sent,me"
set nm_unread_tag = unread
set nm_query_window_enable=yes
set nm_query_window_duration=2
set nm_query_window_timebase="month"
set spoolfile=+Inbox
set postponed=+Drafts
set record=+Sent
set trash=+Trash
virtual-mailboxes "Boîte combinée" "notmuch://?query=tag:inbox"
virtual-mailboxes "Aujourd'hui" "notmuch://?query=date:today"
#folder-hook "Boîte combinée" "/usr/bin/fish ~/.config/neomutt/accounts.fish"
set mbox_type=Maildir