From 0fe964f9fe98ad94eadc5b05bead10a71c9dcf5e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Wei=C3=9Fl?= Date: Sun, 5 Dec 2010 04:30:22 +0100 Subject: [PATCH 1/1] quote namazu search term --- muttjump | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/muttjump b/muttjump index 53a44bb..fb9bde0 100755 --- a/muttjump +++ b/muttjump @@ -63,6 +63,10 @@ function quote () { echo \'${1//\'/\'\\\'\'}\' } +function quote_regexp () { + echo "$1" | sed 's/[][\^.$|)(*+?}{]/\\&/g' +} + function is_callable () { type $1 >/dev/null 2>&1 } @@ -158,7 +162,7 @@ case $MUTTJUMP_INDEXER in ;; nmzmail) nmzmail_results=$(mktemp -d) - echo "+message-id:$msgid" | $NMZMAIL -r "$nmzmail_results" + echo "+message-id:/^$msgid_quoted$/" | $NMZMAIL -r "$nmzmail_results" orig_msgfiles=$(find "$nmzmail_results" -type l -exec readlink {} \;) rm -rf "$nmzmail_results" ;; -- 2.39.5