homes/desktop/.config/neomutt/neomuttrc
kujiu (@uberwald) 8ca6287fb1
Update all tools
-> Passwords in KeePassXC (access by keyring)
-> Neomutt + Aerc (mail)
-> vdirsyncer + khal + khard (calendar and contacts)
zsh -> fish
-> poezio (XMPP)
-> newsboat (RSS with FreshRSS)
-> toot (Mastodon client)
vim -> neovim (with lunarvim)
-> nvimpager (pager based on neovim)
-> konsole

With Nightfox theme.
2023-09-02 00:40:34 +02:00

168 lines
6.1 KiB
Text

unhdr_order *
ignore * # ignore tous les headers, unignore plus tard
###### General mail config
my_hdr X-Operating-System: `lsb_release -a | grep "^Description:" | sed "s/Description:[\t ]*//"`
# 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 charset = UTF-8
set sort = reverse-date-received
set edit_headers = yes
set askbcc = yes
set askcc = yes
set reply_to = ask-yes
set copy = yes
set include
set forward_format = "Fwd: %s"
set editor = 'nvim -c "set textwrap=72" -c "set wrap" -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 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 - sidebar-prev
bind index,pager + sidebar-next
bind index,pager \\ sidebar-open
bind index <tab> next-unread
macro index,pager B '<enter-command>toggle sidebar_visible<enter>'
macro index,pager a "<pipe-message>khard add-email<return>" "add sender address to khard"
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 imap-fetch-mail
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 implicit_autoview
auto_view text/html application/x-pgp-message
set mailcap_path="~/.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. size: %l Attachments: %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 %-15.15L %4c %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 sidebar_divider_char="|"
set sidebar_visible=no
set sidebar_width=20
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:
###### 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"
###### General identity config
# Personnel
set use_envelope_from = yes
set reverse_name = yes
set reverse_realname = yes
###### General accounts config
source ~/.config/neomutt/accounts.conf