X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/d215fb8c4bb24685149e374ced9ab2fa5c2fd21e..735551a08ead8e6504c2e0439d52a464d0d64bea:/.mutt/batch-subject-editor?ds=inline 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'"