]> git.madduck.net Git - etc/mailfilter.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

add word boundaries to generated regexps
authormartin f. krafft <madduck@madduck.net>
Tue, 25 Sep 2007 14:40:41 +0000 (16:40 +0200)
committermartin f. krafft <madduck@madduck.net>
Tue, 25 Sep 2007 14:40:41 +0000 (16:40 +0200)
bin/kill-from

index 344418515ac66f5c3066de9ef5fe5be8f8b57dcd..8d5d2ae38dbf9142acf0f64c261b251a449dd7be 100755 (executable)
@@ -19,8 +19,8 @@ case "$ME" in
     esac
     CHECKPREFIX='From: someone <'
     CHECKPOSTFIX='>'
     esac
     CHECKPREFIX='From: someone <'
     CHECKPOSTFIX='>'
-    REPREFIX='^From:.*'
-    REPOSTFIX=''
+    REPREFIX='^From:.*\<'
+    REPOSTFIX='\>'
     ARG="$1"
     ;;
   kill-thread)
     ARG="$1"
     ;;
   kill-thread)
@@ -37,8 +37,8 @@ case "$ME" in
     esac
     CHECKPREFIX='References: <something> '
     CHECKPOSTFIX='>'
     esac
     CHECKPREFIX='References: <something> '
     CHECKPOSTFIX='>'
-    REPREFIX='^References:.*'
-    REPOSTFIX=''
+    REPREFIX='^References:.*\<'
+    REPOSTFIX='\>'
     ARG="${1#<}"; ARG="${ARG%>}"
     ;;
 esac
     ARG="${1#<}"; ARG="${ARG%>}"
     ;;
 esac