add basic neomutt config

This commit is contained in:
Diego Ferando Carrión 2024-09-30 12:09:38 +02:00
parent 5a048017d1
commit 138bbd5a70
Signed by: CRThaze
GPG Key ID: 8279B79A1A7F8194
2 changed files with 90 additions and 0 deletions

1
home/any/mutt.dirs Normal file
View File

@ -0,0 +1 @@
.config/neomutt

View File

@ -0,0 +1,89 @@
## Creds
source ./credentials
## Account
set realname = "Diego Fernando Carrión"
set from = "diego@crthaze.com"
set spoolfile = "imap://127.0.0.1:1143/"
set smtp_url = "smtp://127.0.0.1:1025"
## General
set folder = $spoolfile
set postponed = "+Drafts"
set record = "+Sent"
set trash = "+Trash"
mailboxes $postponed $record $trash
# set folder=~/.var/mail
set tmpdir=~/.var/tmp/mail
set record=+sent
set sort=threads
set wait_key=no
## Color
color attachment brightmagenta default
color error brightred default
color hdrdefault red default
color indicator brightyellow red
color markers brightcyan default
color message brightcyan default
color normal default default
color quoted brightblue default
color search default green
color signature red default
color status yellow blue
color tilde magenta default
color tree magenta default
## Crypto
# 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 0xD4930DDF914B2E0F61F66BA1114BF5E476369EA9 -- -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 0xD4930DDF914B2E0F61F66BA1114BF5E476369EA9 -- -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 = 0xD4930DDF914B2E0F61F66BA1114BF5E476369EA9
# set pgp_replyencrypt=yes
# set pgp_timeout=3600
# set pgp_good_sign="^gpg: Good signature from"
# message-hook '!(~g|~G) ~b"^-----BEGIN\ PGP\ (SIGNED\ )?MESSAGE"' "exec check-traditional-pgp"
# ## Composing
# # macro compose m \
# # "<enter-command>set pipe_decode<enter>\
# # <pipe-message>pandoc -f gfm -t plain -o ~/.mutt/tmp/msg.txt<enter>\
# # <pipe-message>pandoc -s -f gfm --self-contained -o ~/.mutt/tmp/msg.html --resource-path ~/.mutt/templates/ --template e-mail<enter>\
# # <enter-command>unset pipe_decode<enter>\
# # <attach-file>~/.mutt/tmp/msg.txt<enter>\
# # <attach-file>~/.mutt/tmp/msg.html<enter>\
# # <tag-entry><previous-entry><tag-entry><group-alternatives>" \
# # "Convert markdown to HTML5 and plaintext alternative content types"
# # macro compose ,m \
# # "<enter-command>set pipe_decode<enter>\
# # <pipe-message>pandoc -f gfm -t plain -o ~/.mutt/tmp/msg.txt<enter>\
# # <pipe-message>pandoc -s -f gfm -t html5 -o ~/.mutt/tmp/msg.html<enter>\
# # <enter-command>unset pipe_decode<enter>a^U~/.mutt/tmp/msg.txt\n^Da^U~/.mutt/tmp/msg.html\n^D^T^Utext/html; charset=utf-8\n=DTT&d^U\n" \
# # "Convert markdown gfm to HTML and plain"
# macro compose m \
# "<enter-command>set pipe_decode<enter>\
# <pipe-message>pandoc --no-check-certificate -f gfm -t plain -o ~/.mutt/tmp/msg.txt<enter>\
# <pipe-message>pandoc --no-check-certificate -s -f gfm --self-contained -o ~/.mutt/tmp/msg.html --resource-path ~/.mutt/templates/ --template e-mail<enter>\
# <enter-command>unset pipe_decode<enter>a^U~/.mutt/tmp/msg.txt\n^Da^U~/.mutt/tmp/msg.html\n^D^T^Utext/html; charset=utf-8\n=DTT&d^U\n" \
# "Convert markdown gfm to HTML and plain"
# # Use abook with Mutt
# set query_command="abook --mutt-query '%s'"
# macro index,pager A "|abook --add-email-quiet<return>" 'add sender to abook'