Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand environment variables in config files #8

Open
jetmore opened this issue Oct 11, 2019 · 0 comments
Open

Expand environment variables in config files #8

jetmore opened this issue Oct 11, 2019 · 0 comments
Labels
idea An enhancement I'm not sure is a good idea yet

Comments

@jetmore
Copy link
Owner

jetmore commented Oct 11, 2019

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

@jetmore jetmore added the idea An enhancement I'm not sure is a good idea yet label Oct 11, 2019
@jetmore jetmore added this to the backlog-feature milestone Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea An enhancement I'm not sure is a good idea yet
Projects
None yet
Development

No branches or pull requests

1 participant