Thread (3 messages) flat view 3 messages, 3 authors, 2021-02-16

Re: git-send-email: smtpserver in $HOME

From: Jeff King <hidden>
Date: 2021-02-16 15:46:57

Possibly related (same subject, not in this thread)

On Mon, Feb 15, 2021 at 06:14:39PM -0800, Junio C Hamano wrote:
Jan “Khardix” Staněk  [off-list ref] writes:
quoted
Would it be feasible to treat the `smtpserver` as path option
and expand `~`/`~user` paths?
Would it break anything
(i.e., is `~` a valid character for beginning of a hostname)?
I haven't given too much thought, but offhand do not think of a
reason why a change like the attached would break things.
I agree it's unlikely to break anything.

Still, it seems a bit unusual for an executed program to handle tilde
like this. The usual mechanism is for us to run it with the shell and
expect to find it in $PATH.

It looks like there's some weirdness here, though; $smtp_server may be a
hostname, and it looks like we use "/" to distinguish a file path. I
wonder if allowing "!my-sendmail" would be more consistent with other
parts of Git (not to mention more flexible).

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help