X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=mutt%2Fcrypto-autoencrypt.pl;h=08cf146bff5e94304c6d20a82c636dfb40540760;hb=eb6906d476b4e0f4329842d2dcbb990c7c222cb5;hp=c0a49ea76f3b6d70a2d5989046108fe47b8cbbf5;hpb=73c125f258cd3f4523e9f522c7e58feb72a7ac96;p=config%2Fdotfiles.git diff --git a/mutt/crypto-autoencrypt.pl b/mutt/crypto-autoencrypt.pl index c0a49ea..08cf146 100755 --- a/mutt/crypto-autoencrypt.pl +++ b/mutt/crypto-autoencrypt.pl @@ -28,10 +28,11 @@ while (<$gpg>) { # We don't skip invalid, deleted, revoked, expired and not-trusted UIDs to # prevent sending an unencrypted mail when e.g. a key is revoked or - # expired. If you want to skip those UIDs, uncomment the next line. + # expired; GnuPG will warn if we use any of them. If you really want to + # skip those UIDs (not recommended), uncomment the next line. #next if /^uid:[idren]:/; next if not /<(.+?@.+?)>:/; - print "send-hook '~t .*$1.*' 'set crypt_autoencrypt=yes'\n"; + print "send-hook '~t $1' 'set crypt_autoencrypt=yes'\n"; } close $gpg or die $!;