]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - mutt/crypto
use set -eu
[config/dotfiles.git] / mutt / crypto
1 # muttrc file for gpg support
2
3 # Copyright (C) 2007-2012  Simon Ruderich
4 #
5 # This file is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This file is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this file.  If not, see <http://www.gnu.org/licenses/>.
17
18
19 # settings for gpg to decrypt/encrypt/verify:
20 set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"
21 set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f"
22 set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f"
23 set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
24 set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
25 set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to %a -- -r %r -- %f"
26 set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to %a -- -r %r -- %f"
27 set pgp_import_command="gpg --no-verbose --import --verbose %f"
28 set pgp_export_command="gpg --no-verbose --export --armor %r"
29 set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r"
30 set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r"
31 set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r"
32 # match necessary for a good signature:
33 set pgp_good_sign="^gpg: Good signature from"
34
35 # use inline signatures for compatibility with other clients and mailing
36 # lists:
37 set pgp_create_traditional=yes
38
39 # automatically sign every mail:
40 set pgp_autosign=yes
41 # automatically encrypt replies on encrypted mails:
42 set pgp_replyencrypt=yes
43
44 # automatically verify inline signatures:
45 set pgp_auto_decode=yes
46
47 # store the gpg password for half an hour:
48 set pgp_timeout=1800
49
50 # use my key for signing/encrypting:
51 set pgp_sign_as=0x92FEFDB7E44C32F9
52
53 # enable encryption for all known GnuPG keys. crypto-autoencrypt.pl creates
54 # all the necessary hooks:
55 send-hook . 'set crypt_autoencrypt=no'
56 source ~/.mutt/crypto-autoencrypt.pl|
57
58 # vim: ft=muttrc