I wrote: > However, in some circumstances while editing the original message, I > alter the From: line to an alternative address I use with a different > domain name. In this situation, when I exit the text editor, mutt apparently does not scan the hook file and simply sets Fcc: to the default value.
Richard <richard.zidli...@googlemail.com> and Gregor Zattler <telegr...@gmx.net> suggested: > send2-hook is matched every time a message is changed, either > by editing it, or by using the compose menu to change its > recipients or subject. send2-hook is executed after send-hook, > and can, e.g., be used to set parameters such as the $sendmail > variable depending on the message's sender address. > > use send2-hook. Thank you both very much for the suggestion. I had recently upgraded from mutt version 1.4 and was not even aware of this variable. I have looked over the manual and I am still confused as to how to use send2-hook in this case. When I edit my message and change the From: line while leaving the To: line alone, I do not understand why mutt is then failing to set the appropriate Fcc: box based upon the fcc-save-hook entries in my hook file. Why does mutt care if the From: line is altered since the fcc-save-hook should be matching on the To: line? In my hook file I have hundreds of fcc-save-hook patterns for different email addresses and I don't actually see how I would use send2-hook to address this problem because it seems like I would need a send2-hook entry for every pattern, and I don't know what "command" I would execute anyway in order to get the hook file reread. However, after looking through an updated version of the manual, I did notice the "alternates" command and gave that a try. I set it to a list of all the addresses I am using and then tested out mutt doing the procedure I described above, and that seems to take care of the problem! I'm still not clear why changing the From: line confuses mutt, but I guess, after editing the message, mutt no longer remembers who I am, so it no longer knew where to look for the appropriate config and hook files until I informed it of my identity with the alternates command. Please feel free to clarify my understanding of this if I am wrong. Thanks again. -- Jeffery Small