On Sun, Feb 12, 2023 at 05:14:38PM -0800, Ian Zimmerman wrote:
lists -group mutt mutt-users send-hook '%L mutt' "set from='[email protected]' ; set envelope_from_address='[email protected]'"
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="[email protected]" 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="[email protected]"' send-hook '%L mutt' 'set from="[email protected]"' [...] send-hook '~A' 'set envelope_from_address=$from' -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
Description: PGP signature
