]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
mutt/crypto-autoencrypt.pl: simplify send-hook regex
authorSimon Ruderich <simon@ruderich.org>
Fri, 21 Mar 2014 22:49:29 +0000 (23:49 +0100)
committerSimon Ruderich <simon@ruderich.org>
Fri, 21 Mar 2014 22:49:29 +0000 (23:49 +0100)
mutt/crypto-autoencrypt.pl

index 6bce8cc3f7c264b9eaecff90ec8538d48da060f0..08cf146bff5e94304c6d20a82c636dfb40540760 100755 (executable)
@@ -33,6 +33,6 @@ while (<$gpg>) {
     #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 $!;