I'm not sure if this is a good idea, but someone tried it and found it didn't work. Noting it here for future consideration. Perhaps if it is added it should be off by default and turned on with --config-try-environment or something.
Repro:
mb 0 /Users/jetmore/Documents/git/swaks > cat config
--to $TO
--from from@example.com
--helo server.example.com
mb 0 /Users/jetmore/Documents/git/swaks > TO=recip@example.com ./swaks --dump protocol --config ./config
Protocol Info:
protocol = esmtp
helo = server.example.com
from = from@example.com
to = $TO
force getpwuid = FALSE
quit after =
drop after =
drop after send =
server_only = FALSE
timeout = 30
pipeline = FALSE
prdr = FALSE
mb 0 /Users/jetmore/Documents/git/swaks >
If implemented, the "to" option in the output should show recip@example.com, not $TO
I'm not sure if this is a good idea, but someone tried it and found it didn't work. Noting it here for future consideration. Perhaps if it is added it should be off by default and turned on with
--config-try-environment
or something.Repro:
If implemented, the "to" option in the output should show recip@example.com, not
$TO