diff options
Diffstat (limited to '.config/mutt')
| -rw-r--r-- | .config/mutt/accounts/1-metu.muttrc | 39 | ||||
| -rw-r--r-- | .config/mutt/accounts/2-ceng.muttrc | 42 | ||||
| -rw-r--r-- | .config/mutt/gpg.rc | 144 | ||||
| -rw-r--r-- | .config/mutt/muttrc | 6 |
4 files changed, 231 insertions, 0 deletions
diff --git a/.config/mutt/accounts/1-metu.muttrc b/.config/mutt/accounts/1-metu.muttrc new file mode 100644 index 0000000..3f17d05 --- /dev/null +++ b/.config/mutt/accounts/1-metu.muttrc | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | # vim: filetype=neomuttrc | ||
| 2 | # muttrc file for account metu | ||
| 3 | set realname = "Yigit Sever" | ||
| 4 | set from = "yigit.sever@metu.edu.tr" | ||
| 5 | set sendmail = "msmtp -a metu" | ||
| 6 | alias me Yigit Sever <yigit.sever@metu.edu.tr> | ||
| 7 | set folder = "/home/yigit/.local/share/mail/metu" | ||
| 8 | set header_cache = /home/yigit/.cache/mutt-wizard/metu/headers | ||
| 9 | set message_cachedir = /home/yigit/.cache/mutt-wizard/metu/bodies | ||
| 10 | set mbox_type = Maildir | ||
| 11 | |||
| 12 | bind index,pager gg noop | ||
| 13 | bind index,pager g noop | ||
| 14 | bind index,pager M noop | ||
| 15 | bind index,pager C noop | ||
| 16 | bind index gg first-entry | ||
| 17 | macro index o "<shell-escape>mailsync -V metu<enter>" "run mbsync to sync metu" | ||
| 18 | unmailboxes * | ||
| 19 | |||
| 20 | set spoolfile = "+INBOX" | ||
| 21 | set record = "+sent-mail" | ||
| 22 | set postponed = "+drafts" | ||
| 23 | set trash = "+Trash" | ||
| 24 | mailboxes "=Trash" "=drafts" "=Archive" "=INBOX" "=sent-mail" | ||
| 25 | macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox" # mw-autogenerated | ||
| 26 | macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox" # mw-autogenerated | ||
| 27 | macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox" # mw-autogenerated | ||
| 28 | macro index,pager gs "<change-folder>=sent-mail<enter>" "go to sent" # mw-autogenerated | ||
| 29 | macro index,pager Ms ";<save-message>=sent-mail<enter>" "move mail to sent" # mw-autogenerated | ||
| 30 | macro index,pager Cs ";<copy-message>=sent-mail<enter>" "copy mail to sent" # mw-autogenerated | ||
| 31 | macro index,pager gd "<change-folder>=drafts<enter>" "go to drafts" # mw-autogenerated | ||
| 32 | macro index,pager Md ";<save-message>=drafts<enter>" "move mail to drafts" # mw-autogenerated | ||
| 33 | macro index,pager Cd ";<copy-message>=drafts<enter>" "copy mail to drafts" # mw-autogenerated | ||
| 34 | macro index,pager gt "<change-folder>=Trash<enter>" "go to trash" # mw-autogenerated | ||
| 35 | macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash" # mw-autogenerated | ||
| 36 | macro index,pager Ct ";<copy-message>=Trash<enter>" "copy mail to trash" # mw-autogenerated | ||
| 37 | macro index,pager ga "<change-folder>=Archive<enter>" "go to archive" # mw-autogenerated | ||
| 38 | macro index,pager Ma ";<save-message>=Archive<enter>" "move mail to archive" # mw-autogenerated | ||
| 39 | macro index,pager Ca ";<copy-message>=Archive<enter>" "copy mail to archive" # mw-autogenerated | ||
diff --git a/.config/mutt/accounts/2-ceng.muttrc b/.config/mutt/accounts/2-ceng.muttrc new file mode 100644 index 0000000..e5a1321 --- /dev/null +++ b/.config/mutt/accounts/2-ceng.muttrc | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | # vim: filetype=neomuttrc | ||
| 2 | # muttrc file for account ceng | ||
| 3 | set realname = "Yigit Sever" | ||
| 4 | set from = "yigit.sever@ceng.metu.edu.tr" | ||
| 5 | set sendmail = "msmtp -a ceng" | ||
| 6 | alias me Yigit Sever <yigit.sever@ceng.metu.edu.tr> | ||
| 7 | set folder = "/home/yigit/.local/share/mail/ceng" | ||
| 8 | set header_cache = /home/yigit/.cache/mutt-wizard/ceng/headers | ||
| 9 | set message_cachedir = /home/yigit/.cache/mutt-wizard/ceng/bodies | ||
| 10 | set mbox_type = Maildir | ||
| 11 | |||
| 12 | set pgp_self_encrypt = yes | ||
| 13 | set pgp_default_key = "BA92244CBEE0980DE926C49F57428AA6F93E4FE8" | ||
| 14 | |||
| 15 | bind index,pager gg noop | ||
| 16 | bind index,pager g noop | ||
| 17 | bind index,pager M noop | ||
| 18 | bind index,pager C noop | ||
| 19 | bind index gg first-entry | ||
| 20 | macro index o "<shell-escape>mailsync -V ceng<enter>" "run mbsync to sync ceng" | ||
| 21 | unmailboxes * | ||
| 22 | |||
| 23 | set spoolfile = "+INBOX" | ||
| 24 | set record = "+Sent" | ||
| 25 | set postponed = "+Drafts" | ||
| 26 | set trash = "+Trash" | ||
| 27 | mailboxes "=spam" "=Trash" "=Sent" "=INBOX" "=Drafts" | ||
| 28 | macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox" # mw-autogenerated | ||
| 29 | macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox" # mw-autogenerated | ||
| 30 | macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox" # mw-autogenerated | ||
| 31 | macro index,pager gs "<change-folder>=Sent<enter>" "go to sent" # mw-autogenerated | ||
| 32 | macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent" # mw-autogenerated | ||
| 33 | macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent" # mw-autogenerated | ||
| 34 | macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts" # mw-autogenerated | ||
| 35 | macro index,pager Md ";<save-message>=Drafts<enter>" "move mail to drafts" # mw-autogenerated | ||
| 36 | macro index,pager Cd ";<copy-message>=Drafts<enter>" "copy mail to drafts" # mw-autogenerated | ||
| 37 | macro index,pager gt "<change-folder>=Trash<enter>" "go to trash" # mw-autogenerated | ||
| 38 | macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash" # mw-autogenerated | ||
| 39 | macro index,pager Ct ";<copy-message>=Trash<enter>" "copy mail to trash" # mw-autogenerated | ||
| 40 | macro index,pager gS "<change-folder>=spam<enter>" "go to spam" # mw-autogenerated | ||
| 41 | macro index,pager MS ";<save-message>=spam<enter>" "move mail to spam" # mw-autogenerated | ||
| 42 | macro index,pager CS ";<copy-message>=spam<enter>" "copy mail to spam" # mw-autogenerated | ||
diff --git a/.config/mutt/gpg.rc b/.config/mutt/gpg.rc new file mode 100644 index 0000000..2070ad2 --- /dev/null +++ b/.config/mutt/gpg.rc | |||
| @@ -0,0 +1,144 @@ | |||
| 1 | # -*-muttrc-*- | ||
| 2 | # | ||
| 3 | # Command formats for gpg. | ||
| 4 | # | ||
| 5 | # Version notes: | ||
| 6 | # | ||
| 7 | # GPG 2.1 introduces the option "--pinentry-mode", which requires | ||
| 8 | # the "loopback" argument in instances where "--passphrase-fd" is | ||
| 9 | # used. | ||
| 10 | # | ||
| 11 | # Some of the older commented-out versions of the commands use gpg-2comp from: | ||
| 12 | # http://70t.de/download/gpg-2comp.tar.gz | ||
| 13 | # | ||
| 14 | # %p The empty string when no passphrase is needed, | ||
| 15 | # the string "PGPPASSFD=0" if one is needed. | ||
| 16 | # | ||
| 17 | # This is mostly used in conditional % sequences. | ||
| 18 | # | ||
| 19 | # %f Most PGP commands operate on a single file or a file | ||
| 20 | # containing a message. %f expands to this file's name. | ||
| 21 | # | ||
| 22 | # %s When verifying signatures, there is another temporary file | ||
| 23 | # containing the detached signature. %s expands to this | ||
| 24 | # file's name. | ||
| 25 | # | ||
| 26 | # %a In "signing" contexts, this expands to the value of the | ||
| 27 | # configuration variable $pgp_sign_as, if set, otherwise | ||
| 28 | # $pgp_default_key. You probably need to | ||
| 29 | # use this within a conditional % sequence. | ||
| 30 | # | ||
| 31 | # %r In many contexts, neomutt passes key IDs to pgp. %r expands to | ||
| 32 | # a list of key IDs. | ||
| 33 | |||
| 34 | # Section A: Key Management | ||
| 35 | |||
| 36 | # The default key for encryption (used by $pgp_self_encrypt and | ||
| 37 | # $postpone_encrypt). | ||
| 38 | # | ||
| 39 | # It will also be used for signing unless $pgp_sign_as is set to a | ||
| 40 | # key. | ||
| 41 | # | ||
| 42 | # Unless your key does not have encryption capability, uncomment this | ||
| 43 | # line and replace the keyid with your own. | ||
| 44 | # | ||
| 45 | set crypt_use_gpgme=yes | ||
| 46 | set crypt_autosign=yes | ||
| 47 | set crypt_verify_sig=yes | ||
| 48 | set crypt_replysign=yes | ||
| 49 | set crypt_replyencrypt=yes | ||
| 50 | set crypt_replysignencrypted=yes | ||
| 51 | set crypt_autoencrypt = yes | ||
| 52 | |||
| 53 | set pgp_default_key= BA92244CBEE0980DE926C49F57428AA6F93E4FE8 | ||
| 54 | set pgp_check_gpg_decrypt_status_fd | ||
| 55 | set pgp_use_gpg_agent = yes | ||
| 56 | set pgp_self_encrypt = yes | ||
| 57 | |||
| 58 | # If you have a separate signing key, or your key _only_ has signing | ||
| 59 | # capability, uncomment this line and replace the keyid with your | ||
| 60 | # signing keyid. | ||
| 61 | # | ||
| 62 | # set pgp_sign_as="0x87654321" | ||
| 63 | |||
| 64 | |||
| 65 | # Section B: Commands | ||
| 66 | |||
| 67 | # Note that we explicitly set the comment armor header since GnuPG, when used | ||
| 68 | # in some localiaztion environments, generates 8bit data in that header, thereby | ||
| 69 | # breaking PGP/MIME. | ||
| 70 | |||
| 71 | # decode application/pgp | ||
| 72 | # | ||
| 73 | set pgp_decode_command="gpg --status-fd=2 %?p?--pinentry-mode loopback --passphrase-fd 0? --no-verbose --quiet --batch --output - %f" | ||
| 74 | |||
| 75 | # Verify a signature | ||
| 76 | # | ||
| 77 | set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f" | ||
| 78 | |||
| 79 | # Decrypt an attachment | ||
| 80 | # | ||
| 81 | set pgp_decrypt_command="gpg --status-fd=2 %?p?--pinentry-mode loopback --passphrase-fd 0? --no-verbose --quiet --batch --output - --decrypt %f" | ||
| 82 | |||
| 83 | # Create a PGP/MIME signed attachment | ||
| 84 | # | ||
| 85 | # set pgp_sign_command="gpg-2comp --comment '' --no-verbose --batch --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f" | ||
| 86 | # | ||
| 87 | set pgp_sign_command="gpg %?p?--pinentry-mode loopback --passphrase-fd 0? --no-verbose --batch --quiet --output - --armor --textmode %?a?--local-user %a? --detach-sign %f" | ||
| 88 | |||
| 89 | # Create a application/pgp inline signed message. This style is obsolete but still needed for Hushmail recipients and some MUAs. | ||
| 90 | # | ||
| 91 | # set pgp_clearsign_command="gpg-2comp --comment '' --no-verbose --batch --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f" | ||
| 92 | # | ||
| 93 | set pgp_clearsign_command="gpg %?p?--pinentry-mode loopback --passphrase-fd 0? --no-verbose --batch --quiet --output - --armor --textmode %?a?--local-user %a? --clearsign %f" | ||
| 94 | |||
| 95 | # Create an encrypted attachment (note that some users include the --always-trust option here) | ||
| 96 | # | ||
| 97 | # set pgp_encrypt_only_command="/usr/lib/neomutt/pgpewrap gpg-2comp -v --batch --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" | ||
| 98 | # | ||
| 99 | set pgp_encrypt_only_command="/usr/lib/neomutt/pgpewrap gpg --batch --quiet --no-verbose --output - --textmode --armor --encrypt -- --recipient %r -- %f" | ||
| 100 | |||
| 101 | # Create an encrypted and signed attachment (note that some users include the --always-trust option here) | ||
| 102 | # | ||
| 103 | # set pgp_encrypt_sign_command="/usr/lib/neomutt/pgpewrap gpg-2comp %?p?--passphrase-fd 0? -v --batch --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" | ||
| 104 | # | ||
| 105 | set pgp_encrypt_sign_command="/usr/lib/neomutt/pgpewrap gpg %?p?--pinentry-mode loopback --passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - %?a?--local-user %a? --armor --sign --encrypt -- --recipient %r -- %f" | ||
| 106 | |||
| 107 | # Import a key into the public key ring | ||
| 108 | # | ||
| 109 | set pgp_import_command="gpg --no-verbose --import %f" | ||
| 110 | |||
| 111 | # Export a key from the public key ring | ||
| 112 | # | ||
| 113 | set pgp_export_command="gpg --no-verbose --armor --export %r" | ||
| 114 | |||
| 115 | # Verify a key | ||
| 116 | # | ||
| 117 | set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r" | ||
| 118 | |||
| 119 | # Read in the public key ring | ||
| 120 | # note: the second --with-fingerprint adds fingerprints to subkeys | ||
| 121 | # | ||
| 122 | set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-keys %r" | ||
| 123 | |||
| 124 | # Read in the secret key ring | ||
| 125 | # note: the second --with-fingerprint adds fingerprints to subkeys | ||
| 126 | # | ||
| 127 | set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-secret-keys %r" | ||
| 128 | |||
| 129 | # Fetch keys | ||
| 130 | # set pgp_getkeys_command="pkspxycwrap %r" | ||
| 131 | |||
| 132 | # pattern for good signature - may need to be adapted to locale! | ||
| 133 | # OK, here's a version which uses gnupg's message catalog: | ||
| 134 | # set pgp_good_sign="^gpgv?: Good signature from" | ||
| 135 | # set pgp_good_sign="`gettext -d gnupg -s 'Good signature from "' | tr -d '"'`" | ||
| 136 | # | ||
| 137 | # Output pattern to indicate a valid signature using --status-fd messages | ||
| 138 | set pgp_good_sign="^\\[GNUPG:\\] GOODSIG" | ||
| 139 | |||
| 140 | # Output pattern to verify a decryption occurred | ||
| 141 | # This is now deprecated by pgp_check_gpg_decrypt_status_fd: | ||
| 142 | # set pgp_decryption_okay="^\\[GNUPG:\\] DECRYPTION_OKAY" | ||
| 143 | set pgp_check_gpg_decrypt_status_fd | ||
| 144 | |||
diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc new file mode 100644 index 0000000..103be25 --- /dev/null +++ b/.config/mutt/muttrc | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | # vim: filetype=neomuttrc | ||
| 2 | source /usr/share/mutt-wizard/mutt-wizard.muttrc # mw-autogenerated | ||
| 3 | source /home/yigit/.config/mutt/accounts/1-metu.muttrc # mw-autogenerated | ||
| 4 | macro index,pager i1 '<sync-mailbox><enter-command>source /home/yigit/.config/mutt/accounts/1-metu.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to yigit.sever@metu.edu.tr" # mw-autogenerated | ||
| 5 | macro index,pager i2 '<sync-mailbox><enter-command>source /home/yigit/.config/mutt/accounts/2-ceng.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to yigit.sever@ceng.metu.edu.tr" # mw-autogenerated | ||
| 6 | source ~/.config/mutt/gpg.rc | ||
