From 7fd3f35b55ce260985f2a014615ff3cda6e4ac49 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 21 Mar 2014 23:49:29 +0100 Subject: [PATCH] mutt/crypto-autoencrypt.pl: simplify send-hook regex --- mutt/crypto-autoencrypt.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutt/crypto-autoencrypt.pl b/mutt/crypto-autoencrypt.pl index 6bce8cc..08cf146 100755 --- a/mutt/crypto-autoencrypt.pl +++ b/mutt/crypto-autoencrypt.pl @@ -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 $!; -- 2.45.2