From: martin f. krafft Date: Tue, 25 Sep 2007 14:40:41 +0000 (+0200) Subject: add word boundaries to generated regexps X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/f3deb3676d14750d667047bf73226bc4980f8ead?ds=sidebyside add word boundaries to generated regexps --- diff --git a/bin/kill-from b/bin/kill-from index 3444185..8d5d2ae 100755 --- a/bin/kill-from +++ b/bin/kill-from @@ -19,8 +19,8 @@ case "$ME" in esac CHECKPREFIX='From: someone <' CHECKPOSTFIX='>' - REPREFIX='^From:.*' - REPOSTFIX='' + REPREFIX='^From:.*\<' + REPOSTFIX='\>' ARG="$1" ;; kill-thread) @@ -37,8 +37,8 @@ case "$ME" in esac CHECKPREFIX='References: ' CHECKPOSTFIX='>' - REPREFIX='^References:.*' - REPOSTFIX='' + REPREFIX='^References:.*\<' + REPOSTFIX='\>' ARG="${1#<}"; ARG="${ARG%>}" ;; esac