Hi! I've got a special requirement of setting the From-address according to the To-address of emails I am sending.
Due to the fact that I am using dozens of different email addresses, I want to automate the setting of my From-address. For this reason, I've got a text file "addresses.txt" in my home folder, which looks like this: recipie...@example.com o...@example.com recipie...@example.com sec...@example.com ... Thus, when I write an email to recipie...@example.com, I want the From-address changed to o...@example.com. When I write an email to recipie...@example.com, I want the From-address changed to sec...@example.com accordingly. My plan is to write a Python script which gets somehow the From-addresses (I don't know how to do this yet), looks up the matching To-address (I can do that), and returns it to mutt somehow (I don't know yet). I've read about send-hook and found [1] but I am not able to apply this to get the result I want to achieve. Can you please help me? Thanks very much! 1. http://dev.mutt.org/trac/wiki/ConfigTricks#Generatingsend-hooksfromaddressesinaflattextfile -- Karl Voit