]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - mutt/crypto-autoencrypt.pl
use set -eu
[config/dotfiles.git] / mutt / crypto-autoencrypt.pl
index c0a49ea76f3b6d70a2d5989046108fe47b8cbbf5..08cf146bff5e94304c6d20a82c636dfb40540760 100755 (executable)
@@ -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 $!;