Hello! I have the following scenario that I'd like to address:
1. I have a custom domain chiraag.me with a catch-all address enabled. 2. Because of (1), I get emails to <x>@chiraag.me where <x> can be anything. 3. My default from address is set in my configuration file which is my non-custom-domain email address <blah>@<bigname>.com. This is necessary because I often send emails from this email address (e.g. to friends, family, etc), while my custom domain is used for signing up for accounts and whatnot. 4. Because of (3), when I compose a reply to an email sent to <x>@chiraag.me, the from address is <blah>@<bigname>.com and <x>@chiraag.me is a CC address. I then manually move that to the From address and continue composing my email and then send as usual. I'd like to automatically set the from address to <x>@chiraag.me if the email was sent to such an address, keeping the <blah>@<bigname>.com address as the from address if that is not the case. I thought of using the reply-hook, which should work nicely for this case (as it is only triggered for replies, from what I understand). However, I am unsure of how to dynamically set the from address based on the to address. use_from doesn't work in this case because it seems to only toggle whether such a header is set by Mutt (using the $from variable). There's probably something basic I'm missing here, but I appreciate any pointers towards a solution for this! Sincerely, Chiraag -- ಚಿರಾಗ್ ನಟರಾಜ್ Pronouns: he/him/his
publickey - mailinglist@chiraag.me.asc.pgp
Description: application/pgp-key
signature.asc
Description: OpenPGP digital signature