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: ix...@ixiemaster.ixion.co.uk, ix...@ixion.co.uk When this happens I want to change the To: addres to just:- To: ix...@ixion.co.uk (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 ix...@ixiemaster.ixion.co.uk or ix...@ixion.co.uk 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: ch...@halon.org.uk' just *adds* ch...@halon.org.uk 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)? -- Chris Green