# 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 $!;