<<< Date Index >>>     <<< Thread Index >>>

Re: changing subject of all messages in a thread



> /me wants mutt to have a <prompt> function.

<prompt> would be handy.  Meanwhile, you might try something like:

$ cat mutt-subject-edit
#!/bin/sh
printf "New subject: " >/dev/tty
read subj </dev/tty
cat <<X
set editor="perl -pi -e 's/^Subject: .*/Subject: $subj/;' %s"
X

:source "mutt-subject-edit |"
[tag some messages]
<tag-prefix><edit-message>

Untested.

-- 
 -D.    dgc@xxxxxxxxxxxx    NSIT    University of Chicago