On Sun, Feb 12, 2023 at 05:14:38PM -0800, Ian Zimmerman wrote:
lists -group mutt mutt-users
send-hook '%L mutt' "set from='googly.negotiator...@aceecat.org' ; set 
envelope_from_address='googly.negotiator...@aceecat.org'"

You can assign envelope_from_address=$from. However, make sure you use a single quote on the send-hook command, to delay expansion of $from until the hook is executed:

send-hook '%L mutt' 'set from="googly.negotiator...@aceecat.org" 
envelope_from_address=$from'

If you cover all cases with the send-hook, you could also put the final
assignment in its own send-hook:

send-hook '~A'      'set from="defa...@example.com"'
send-hook '%L mutt' 'set from="googly.negotiator...@aceecat.org"'
[...]
send-hook '~A'      'set envelope_from_address=$from'

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA

Attachment: signature.asc
Description: PGP signature

Reply via email to