Hi Mutt users, I have been having some problems setting my from address when I'm responding to my emails in a thread. I have $reverse_name set to yes and have posted about this before[1]. Since then I have realised my problem arises from conflicting hooks and I can't think of a way to resolve the issue.
I send emails from multiple addresses: personal, mailing lists, work1, and work2. So I have a series of send hooks like these: send-hook "%C work1" my_hdr From: m...@work1.com send-hook "%C work2" my_hdr From: m...@work2.com send-hook "%C lists" my_hdr From: li...@gmail.com Note that I do not have any default send-hook set. I also have the following reply-hooks so that I can automatically reply with the correct from address based on which account the email was delivered to. reply-hook . my_hdr From: perso...@gmail.com reply-hook '~h "Delivered-To: +list@gmail\.com"' my_hdr From: "l...@gmail.com" reply-hook '~h "Delivered-To: +me@work1\.com"' my_hdr From: m...@work1.com reply-hook '~h "Delivered-To: +me@work2\.com"' my_hdr From: m...@work2.com Now my problem is the default reply-hook above overrides the from address set by reverse_name=yes. If I comment it out, then the from address is what was set by the last "my_hdr From: ..." command in the above hooks. I want it to be my personal address. Any ideas how to resolve this conflict between hooks and reverse_name? Thanks in advance for any hints/pointers. Cheers, Footnotes: [1] <http://mid.gmane.org/20130419063720.gb18...@kuru.dyndns-at-home.com> -- Suvayu Open source is the future. It sets us free.