On Wed, Jul 17, 2024 at 01:58:29PM GMT, Will Yardley wrote: > > So; I need to set the From when replying to the address which the > > original message was To.
> Does setting $reverse_name true and defining a regex in $alternates > to match the address pattern(s) work for you? I don't think it would; according to the documentation, the effect is to override the setting of "from" in some circumstances, not to actually _change_ it (temporarily or not). Anyways, I found a work-around. The set of addresses I want to use in this way is finite, and I already generate the part of my .muttrc where they are relevant with a script. So I told the script to generate another line per address, namely a reply-hook with a "~t $ADDRESS" match and "set from=$ADDRESS" as the payload. -- Ian