From f3deb3676d14750d667047bf73226bc4980f8ead Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 25 Sep 2007 16:40:41 +0200 Subject: [PATCH 1/1] add word boundaries to generated regexps --- bin/kill-from | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.5