git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git-send-email: smtpserver in $HOME

From
Jan “Khardix” Staněk <khardix@gmail.com>
Date
Feb 15, 2021, 14:07 UTC
Message-ID
<CAG+K25Pk0+sOAYuWS2OF7CXLXJLjGMKyBB_SOLpoO5RFiktN5g@mail.gmail.com>

Hi all, I ran into a bit of an issue when attempting to configure sendemail. I use a GMail integration tool [1] which is installed into my $HOME directory (~/.local/bin/gmi), and I would like to use it as `smtpserver`.

[1]: https://github.com/gauteh/lieer

However, I also use different machines with different login/usernames, which means the above is not so simple. Basically I would have to keep login-specific configuration files with appropriate absolute path to the tool "hardcoded" in. Since I like to keep my configuration in git and synced across my machines, that is a state I do not like very much.

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)?

Any other thoughts on this? Am I missing anything obvious? :)

Thanks in advance for any considerations and replies. -- Jan Staněk – Khardix

Next: Junio C Hamano
Message 1 of 13 in “git-send-email: smtpserver in $HOME”
  1. Jan “Khardix” StaněkFeb 15, 2021
  2. Junio C HamanoFeb 16, 2021
  3. Jan “Khardix” StaněkFeb 16, 2021
  4. Junio C HamanoFeb 16, 2021
  5. Jan “Khardix” StaněkFeb 16, 2021
  6. Chris TorekFeb 18, 2021
  7. Andreas SchwabFeb 18, 2021
  8. Jeff KingFeb 16, 2021
  9. Junio C HamanoFeb 16, 2021
  10. Jeff KingFeb 16, 2021
  11. Junio C HamanoFeb 16, 2021
  12. Jeff KingFeb 16, 2021
  13. Jan “Khardix” StaněkFeb 16, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.