From 91f5e3280fb230b2c4b81fd31771613c2cad5432 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sun, 31 Aug 2008 14:10:54 +0100 Subject: [PATCH] fix regexp in batch subject editor and do not print newline Signed-off-by: martin f. krafft --- .mutt/batch-subject-editor | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.mutt/batch-subject-editor b/.mutt/batch-subject-editor index ad12bef..8cfbf5d 100755 --- a/.mutt/batch-subject-editor +++ b/.mutt/batch-subject-editor @@ -17,9 +17,9 @@ if [ -z "${subj:-}" ]; then exit 1 fi -RE_REPLY='(re([[(]?[[:digit:]]+[)]]?)?|aw|antwort):[[:space:]]*' -RE_SUBJ_PREFIX="^Subject:[[:space:]]*(${RE_REPLY})?" +RE_REPLY='((re|aw|antwort)([[(]?[[:digit:]]+[)]]?)?):[[:space:]]*' +RE_SUBJ_PREFIX="^Subject:[[:space:]]*(${RE_REPLY})*" RE_SUBJ='.*' EDITOR="sed -i -re \"s,(${RE_SUBJ_PREFIX})${RE_SUBJ},\\\1$subj,i\"" -printf "set editor='${EDITOR} %s'\n" +printf "set editor='${EDITOR} %s'" -- 2.39.5