bsmtp bls bextract: fixes for command line parsing#1455
Conversation
|
It is almost working well except if someone use the SMTPSERVER env var with a :PORT using the var without the port works. I've done this test as if you bsmtp --help indicate this should be possible |
bruno-at-bareos
left a comment
There was a problem hiding this comment.
Looks good for the moment, check my comment about the test with SMTPSERVER:PORT.
The help indicates using |
bruno-at-bareos
left a comment
There was a problem hiding this comment.
Can we check if we can better handle the default?
Also bsmtp.cc need to have copyright updated.
bruno-at-bareos
left a comment
There was a problem hiding this comment.
Good Work, I think we can squash the commit concerning bsmtp in one and the second concerning bextract and bls
9009f89 to
e94a854
Compare
bruno-at-bareos
left a comment
There was a problem hiding this comment.
Thanks a lot!!!
Ready for merge
bsmtp: parse `SMTPSERVER` value bsmtp: update default mailport handling bsmtp: get environment variable earlier renamed `cp` and `mail_port`
9ef9817 to
48ab1d8
Compare
Description
This PR makes sure the
-hor--mailhostoption is not required and can be left out. It can then be set to theSMTPSERVERenvironment variable, or defaultlocalhost.This PR also include a small fix to handle --include-list (-i) flag in bextract and bls
Please check
If you have any questions or problems, please give a comment in the PR.
Helpful documentation and best practices
Checklist for the reviewer of the PR (will be processed by the Bareos team)
Make sure you check/merge the PR using
devtools/pr-toolto have some simple automated checks run and a proper changelog record added.General
Source code quality