From: Simon Ruderich Date: Fri, 21 Mar 2014 22:49:29 +0000 (+0100) Subject: mutt/crypto-autoencrypt.pl: simplify send-hook regex X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;ds=inline;h=7fd3f35b55ce260985f2a014615ff3cda6e4ac49;hp=-c;p=config%2Fdotfiles.git mutt/crypto-autoencrypt.pl: simplify send-hook regex --- 7fd3f35b55ce260985f2a014615ff3cda6e4ac49 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 $!;