Re: A little like this perhaps? [Was: standardized method of changing reply-subject]
- To: mutt-users@xxxxxxxx
- Subject: Re: A little like this perhaps? [Was: standardized method of changing reply-subject]
- From: "Melisizwe Dubaku" <ssizarit@xxxxxxxxx>
- Date: Wed, 17 Dec 2008 23:49:14 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=pwuEaWftj7Qp0Bdmy3GofP+Ph1BKN6uKbNeaq1y3HVM=; b=lxS6+yCOXbc3dQuQfLIwfX0joqHDct4WzqDj8b/irkEiXMEz4/om0xnPMhNBoUdXLE eZLpUsaN+cre5JcLFPYxBBmHqyfOg4M9RJDeYJiCwB2BpBRBRRPuvEBHgVupLct9voLl kFDh+F3ekxfWx+RQqFg6h/hY2a35tbkLXzlvA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=V36rtisFH1O9wscwrV5Q9KAoo+5Z191RpHgWjYclk8aav17tYZz3uu3xDvJuYU+J2w v+vOylObBl9PymK6JemhixYzegcxdGx9RcVrtUu58bXxV13XCC2Ze657qES9bSjPsgJX 0BtVLxVZb9Bmjp1TmDEj+8gUfMJZPt2rMcScg=
- In-reply-to: <20081216014715.GA5358@xxxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- References: <552bdde0812151311i441149cp2361e5d92b949124@xxxxxxxxxxxxxx> <20081216014715.GA5358@xxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
On Tue, Dec 16, 2008 at 02:47, Erik Christiansen
<dvalin@xxxxxxxxxxxxxxxx> wrote:
> On Mon, Dec 15, 2008 at 10:11:57PM +0100, Melisizwe Dubaku wrote:
>> I would change it to "Meeting cancelled [was: Meeting next week]".
>
> Yes, that's precisely the syntax which I've also absorbed from
> inhabiting a number of technical lists. It is the only one which I've
> noticed to be consistent across several lists.
>
>> Maybe some mail-clients have a way of handling this kind of situation,
>> I don't know.
>
> Up till now I'd just edited the subject line during reply. While that
> can obviously be done after edit, just prior to posting, it can be taken
> one step further if .muttrc has:
>
> set edit_headers=yes
>
> and then adding a key mapping to .vimrc:
>
> au BufNewFile,BufRead /tmp/mutt-* map <M-w> ^[gg/Re:^Mce[Was^[A]^[0Wi
>
> Now Alt-w changes:
>
> Subject: Re: standardized method of changing reply-subject
>
> to:
>
> Subject: [Was: standardized method of changing reply-subject]
> ^
> |
> and places us in insert mode, immediately before the '['.
>
> There is no need to pre-position the cursor, or leave insert mode.
> That's done in the mapping. (So long as there's no "Re:" string in your
> editable headers, prior to the subject line.)
>
> I've just checked the mapping. The stuff prior to "map" may be omitted
> if it's OK to have the mapping when editing things other than mutt
> temporary files. ("^[" is entered as Ctl-v Esc, and "^M" is Ctl-v Enter.
> The "<M-w>" is literal in the mapping, and the dual keypress Alt-w to
> execute. You've probably figured all that. :-)
>
> It is better implement your task in one's favourite editor, because only
> it can place us in edit mode, in the right place for insertion of the
> new subject.
>
> My only regret now, is that convenience could encourage gratuitous
> subject changes. (Like mine above, which does at least lead any future
> archive diver directly to a solution, potentially saving the time taken
> to read a thread sequentially.)
>
> Erik
Thanks Erik and Michael for your suggestions. I'm a little bit
surprised that a common thing like subject-modification hasn't been
standardized yet. Good idea with the keymap though. At least this way
I can ensure my own way of modifiying stays consistent.
Melisizwe