On Sun, Jan 15, 2012 at 07:27:49PM +0100, Jostein Berntsen wrote:
> On 15.01.12,17:59, Chris Green wrote:
> > I asked about this a while ago but, having played with various send-hook
> > ideas I haven't managed to do what I need to do.
> > 
> > I have a mailing list where in some cases, when I L[ist reply] the To:
> > address ends up as follows:-
> > 
> >     To: [email protected], [email protected]
> > 
> > When this happens I want to change the To: addres to just:-
> > 
> >     To: [email protected]
> > 
> > (or the other one with ixiemaster in it, doesn't really matter).
> > 
> > I can't see any way to prevent the generation of the double address, it
> > happens because mutt sees two list addresses in the headers and that's
> > just an idiosyncrasy of the list that I can do nothing about.  I can't
> > set my lists/subscribe to just one of [email protected] or
> > [email protected] because then I won't see all messages as being list
> > messages. 
> > 
> > So, I want a way to edit the header before sending the message if it has
> > the two addresses as above.  I can hook the message easily enough but
> > doing something like:-
> > 
> >     send-hook '~t ixion' 'my_hdr To: [email protected]'
> > 
> > just *adds* [email protected] to the To: header, it doesn't replace the
> > existing addresses there.  
> > 
> > Is there no way to *replace* a header (it's generated by mutt so why not)?
> > 
> 
> You can enter this in your .muttrc:
> 
> alias identity_1                  <[email protected]>
> 
> macro compose V "<edit-to>^Uidentity_<tab>" "Select to"
> 
> So whenever you get two addresses in the to-field you can select the one you
> want by entering "V" in the compose mode. 
> 
Unless it prompts me I'm going to forget/miss it.  As it is I notice
about 50% of the time when the double address is there and simply delete
one of them before composing my reply.  The rest of the time my reply
gets sent to the list twice.

I need an automatic way of doing this so I can't miss it!  :-)

-- 
Chris Green

Reply via email to