I want to be able to set email.method to "ssh relay /usr/sbin/sendmail"
without needing an extra trivial shell script.
This works fine since we pass the full command to a shell, except for
validateconfig trying to find it in $PATH.
Details
Details
- Reviewers
Alphare - Group Reviewers
hg-reviewers - Commits
- rHG1d6c6ad645e1: mail: don't complain about a multi-word email.method
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
+ command = procutil.shellsplit(method)
+ if not (command and procutil.findexe(command[0])):
This condition is correct, but command[0] would raise IndexError if
not command.
Maybe we'll need a helper function that does shellsplit() and returns
command[0] or b''.
- _(b'%r specified as email transport, but not in PATH') % method
+ _(b'%r specified as email transport, but not in PATH') % command[0]