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

Re: Customize To: field



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday, November 17 at 07:01 AM, quoth Michael Elkins:
> On Mon, Nov 17, 2008 at 03:37:00PM +0100, steve wrote:
>> Sometimes people send their message with the following headers:
>> From: "email-address" <email-address>
>> which isn't very nice in the index menu. 
>> I would like to re-write this line as following :
>> From: "a chosen name" <email-address>
>> I tried a reply-hook in the config file for that particular recipient:
>> reply-hook . 'set To: "a chosen name" <email-address>' 
>> but when I hit 'r' to reply, I see 'unknown variable' in the bottom bar 
>> and the To: field hasn't change.
>
> Mutt doesn't currently have any way to delete or alter the recipient 
> list.

That's not true. It's kinda annoying, but it can be done. Here's how:

     reply-hook '^~t email-address' 'push <edit-to><kill-line>"a chosen name" 
<email-address><enter>'

~Kyle
- -- 
They say marriages are made in Heaven. But so is thunder and 
lightning.
                                                      -- Clint Eastwood
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkkhj8gACgkQBkIOoMqOI17bFQCgu7B/FR8CPJZzx0nDr3+ntuG0
jegAnimjJdcQj+fNmA52eACS99aDaFGt
=ZuUH
-----END PGP SIGNATURE-----