commit 0c8b068e40f3edb5e1eb772b4f9cc30e56623d7c parent 1a24ba41fe82a3fbe8b9d2913cca4269374ca241 Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe> Date: Sun, 2 Jan 2022 23:21:51 -0500 Added mutt Diffstat:
| A | linux/.mutt/gmail.muttrc | | | 25 | +++++++++++++++++++++++++ |
| A | linux/.mutt/gpg.rc | | | 114 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| A | linux/.mutt/imca.muttrc | | | 25 | +++++++++++++++++++++++++ |
| A | linux/.mutt/mailcap | | | 3 | +++ |
| A | linux/.mutt/muttrc | | | 45 | +++++++++++++++++++++++++++++++++++++++++++++ |
| A | linux/.mutt/outlook.muttrc | | | 25 | +++++++++++++++++++++++++ |
| A | linux/.mutt/signature.txt | | | 2 | ++ |
| A | linux/.mutt/uni_student.muttrc | | | 25 | +++++++++++++++++++++++++ |
| A | linux/.mutt/uni_teacher.muttrc | | | 25 | +++++++++++++++++++++++++ |
9 files changed, 289 insertions(+), 0 deletions(-)
diff --git a/linux/.mutt/gmail.muttrc b/linux/.mutt/gmail.muttrc @@ -0,0 +1,25 @@ +# IMAP +set imap_user = pablocb2303@gmail.com +set imap_pass = "`pass show google/pablocb2303@gmail.com | head -n 1`" + +set folder = imaps://pablocb2303@gmail.com@imap.gmail.com/ +set spoolfile = +INBOX +unset record +set trash = "+[Gmail]/Corbeille" +set postponed = "+[Gmail]/Brouillons" + + +# SMPT +set smtp_url = smtps://pablocb2303@gmail.com@smtp.gmail.com +set smtp_pass = "`pass show google/pablocb2303@gmail.com | head -n 1`" + +set from = pablocb2303@gmail.com +set realname = "Pablo Cárdenas" +set hostname = gmail.com + +set ssl_force_tls = yes +unset ssl_starttls + + +# Hook +account-hook $folder "set imap_user=pablocb2303@gmail.com imap_pass='`pass show google/pablocb2303@gmail.com | head -n 1`'" diff --git a/linux/.mutt/gpg.rc b/linux/.mutt/gpg.rc @@ -0,0 +1,114 @@ +# -*-muttrc-*- +# +# Command formats for gpg. +# +# Some of the older commented-out versions of the commands use gpg-2comp from: +# http://70t.de/download/gpg-2comp.tar.gz +# +# %p The empty string when no passphrase is needed, +# the string "PGPPASSFD=0" if one is needed. +# +# This is mostly used in conditional % sequences. +# +# %f Most PGP commands operate on a single file or a file +# containing a message. %f expands to this file's name. +# +# %s When verifying signatures, there is another temporary file +# containing the detached signature. %s expands to this +# file's name. +# +# %a In "signing" contexts, this expands to the value of the +# configuration variable $pgp_sign_as, if set, otherwise +# $pgp_default_key. You probably need to +# use this within a conditional % sequence. +# +# %r In many contexts, mutt passes key IDs to pgp. %r expands to +# a list of key IDs. + + +# Section A: Key Management + +# The default key for encryption (used by $pgp_self_encrypt and +# $postpone_encrypt). +# +# It will also be used for signing unless $pgp_sign_as is set to a +# key. +# +# Unless your key does not have encryption capability, uncomment this +# line and replace the keyid with your own. +# +# set pgp_default_key="0x12345678" + +# If you have a separate signing key, or your key _only_ has signing +# capability, uncomment this line and replace the keyid with your +# signing keyid. +# +# set pgp_sign_as="0x87654321" + + +# Section B: Commands + +# Note that we explicitly set the comment armor header since GnuPG, when used +# in some localiaztion environments, generates 8bit data in that header, thereby +# breaking PGP/MIME. + +# 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="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="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 +# note: the second --with-fingerprint adds fingerprints to subkeys +set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-keys %r" + +# read in the secret key ring +# note: the second --with-fingerprint adds fingerprints to subkeys +set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-secret-keys %r" + +# fetch keys +# set pgp_getkeys_command="pkspxycwrap %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" + +# pattern to verify a decryption occurred +# This is now deprecated by pgp_check_gpg_decrypt_status_fd: +# set pgp_decryption_okay="^\\[GNUPG:\\] DECRYPTION_OKAY" +set pgp_check_gpg_decrypt_status_fd + diff --git a/linux/.mutt/imca.muttrc b/linux/.mutt/imca.muttrc @@ -0,0 +1,25 @@ +# IMAP +set imap_user = pablo.cardenas@imca.edu.pe +set imap_pass = "`pass show google/pablo.cardenas@imca.edu.pe | head -n 1`" + +set folder = imaps://pablo.cardenas@imca.edu.pe@imap.gmail.com/ +set spoolfile = +INBOX +unset record +set trash = +[Gmail]/Papelera +set postponed = +[Gmail]/Borradores + + +# SMPT +set smtp_url = smtps://pablo.cardenas@imca.edu.pe@smtp.gmail.com +set smtp_pass = "`pass show google/pablo.cardenas@imca.edu.pe | head -n 1`" + +set from = pablo.cardenas@imca.edu.pe +set realname = "Pablo Cárdenas" +set hostname = imca.edu.pe + +set ssl_force_tls = yes +unset ssl_starttls + + +# Hook +account-hook $folder "set imap_user=pablo.cardenas@imca.edu.pe imap_pass='`pass show google/pablo.cardenas@imca.edu.pe | head -n 1`'" diff --git a/linux/.mutt/mailcap b/linux/.mutt/mailcap @@ -0,0 +1,3 @@ +#text/html; elinks -dump -dump-color-mode 1; copiousoutput; +text/html; elinks %s; nametemplate=%s.html; +#text/html; qutebrowser %s; needsterminal; nametemplate=%s.html; diff --git a/linux/.mutt/muttrc b/linux/.mutt/muttrc @@ -0,0 +1,45 @@ +set header_cache = "~/.cache/mutt/" +set message_cachedir = "~/.cache/mutt/" + +set imap_check_subscribed +set imap_keepalive = 300 +unset imap_passive +set mail_check = 60 +set mbox_type = Maildir + +set signature = ~/.mutt/signature.txt +set send_charset="utf-8" + +set use_from = yes +set ssl_force_tls = yes + +set mailcap_path = ~/.mutt/mailcap +auto_view text/html +alternative_order text/plain text/html +macro attach 'V' "<pipe-entry>iconv -c --to-code=UTF8 > ~/.cache/mutt/mail.html<enter><shell-escape>$BROWSER ~/.cache/mutt/mail.html<enter>" + + +#source "~/.mutt/sample.muttrc-sidebar" +source "~/.mutt/gpg.rc" + + +source "~/.mutt/uni_teacher.muttrc" +folder-hook $folder 'source ~/.mutt/uni_teacher.muttrc' + +source "~/.mutt/uni_student.muttrc" +folder-hook $folder 'source ~/.mutt/uni_student.muttrc' + +source "~/.mutt/imca.muttrc" +folder-hook $folder 'source ~/.mutt/imca.muttrc' + +source "~/.mutt/gmail.muttrc" +folder-hook $folder 'source ~/.mutt/gmail.muttrc' + +#source "~/.mutt/outlook.muttrc" +#folder-hook $folder 'source ~/.mutt/outlook.muttrc' + +macro index,pager <f4> '<sync-mailbox><enter-command>source ~/.mutt/outlook.muttrc<enter><change-folder>!<enter>' +macro index,pager <f5> '<sync-mailbox><enter-command>source ~/.mutt/gmail.muttrc<enter><change-folder>!<enter>' +macro index,pager <f6> '<sync-mailbox><enter-command>source ~/.mutt/uni_student.muttrc<enter><change-folder>!<enter>' +macro index,pager <f7> '<sync-mailbox><enter-command>source ~/.mutt/uni_teacher.muttrc<enter><change-folder>!<enter>' +macro index,pager <f8> '<sync-mailbox><enter-command>source ~/.mutt/imca.muttrc<enter><change-folder>!<enter>' diff --git a/linux/.mutt/outlook.muttrc b/linux/.mutt/outlook.muttrc @@ -0,0 +1,25 @@ +# IMAP +set imap_user = "pablo-cardenas@outlook.com" +set imap_pass = "`pass show microsoft/pablo-cardenas@outlook.com | head -n 1`" + +set folder = imaps://pablo-cardenas@outlook.com@outlook.office365.com +set spoolfile = +INBOX +set record = +Sent +set trash = +Deleted +set postponed = +Drafts + + +# SMPT +set smtp_url = smtps://pablo-cardenas@outlook.com@smtp-mail.outlook.com +set smtp_pass = "`pass show microsoft/pablo-cardenas@outlook.com | head -n 1`" + +set from = pablo-cardenas@outlook.com +set realname = "Pablo Cárdenas" +set hostname = outlook.com + +set ssl_force_tls = yes +unset ssl_starttls + + +# Hook +account-hook $folder "set imap_user='pablo-cardenas@outlook.com' imap_pass='`pass show microsoft/pablo-cardenas@outlook.com | head -n 1`'" diff --git a/linux/.mutt/signature.txt b/linux/.mutt/signature.txt @@ -0,0 +1,2 @@ +Pablo Cárdenas +OpenPGP: http://pcardenasb.com/contact/pgp.asc diff --git a/linux/.mutt/uni_student.muttrc b/linux/.mutt/uni_student.muttrc @@ -0,0 +1,25 @@ +# IMAP +set imap_user = pcardenasb@uni.pe +set imap_pass = "`pass show google/pcardenasb@uni.pe`" + +set folder = imaps://pcardenasb@uni.pe@imap.gmail.com/ +set spoolfile = +INBOX +unset record +set trash = +[Gmail]/Trash +set postponed = +[Gmail]/Drafts + + +# SMPT +set smtp_url = smtps://pcardenasb@uni.pe@smtp.gmail.com +set smtp_pass = "`pass show google/pcardenasb@uni.pe`" + +set from = pcardenasb@uni.pe +set realname = "Pablo Cárdenas" +set hostname = uni.pe + +set ssl_force_tls = yes +unset ssl_starttls + + +# Hook +account-hook $folder "set imap_user=pcardenasb@uni.pe imap_pass='`pass show google/pcardenasb@uni.pe`'" diff --git a/linux/.mutt/uni_teacher.muttrc b/linux/.mutt/uni_teacher.muttrc @@ -0,0 +1,25 @@ +# IMAP +set imap_user = pcardenasb@uni.edu.pe +set imap_pass = "`pass show google/pcardenasb@uni.edu.pe`" + +set folder = imaps://pcardenasb@uni.edu.pe@imap.gmail.com/ +set spoolfile = +INBOX +unset record +set trash = +[Gmail]/Trash +set postponed = +[Gmail]/Drafts + + +# SMPT +set smtp_url = smtps://pcardenasb@uni.edu.pe@smtp.gmail.com +set smtp_pass = "`pass show google/pcardenasb@uni.edu.pe`" + +set from = pcardenasb@uni.edu.pe +set realname = "Pablo Cárdenas" +set hostname = uni.edu.pe + +set ssl_force_tls = yes +unset ssl_starttls + + +# Hook +account-hook $folder "set imap_user=pcardenasb@uni.edu.pe imap_pass='`pass show google/pcardenasb@uni.edu.pe`'"