On 14/05/25 6:28 pm, Junio C Hamano wrote: > Aditya Garg <gargaditya08@xxxxxxxx> writes: > >> Just like Gmail and Outlook, Yahoo is another popular email service >> provider. This commit adds instructions for Yahoo users to be able >> to use it with `git send-email`. It also adds instructions for >> OAauth2.0 authentication for the same, and adds a link for a >> credential helper. > > Heh, I didn't know they are still around ;-) > > $ git checkout master > $ for p in yahoo.com outlook.com gmail.com You may want to check for hotmail.com and live.com as well :) > do > echo "@$p" > git log --oneline --since=5.years --no-merges --author=@$p | > wc -l > done > @yahoo.com > 12 > @outlook.com > 16 > @gmail.com > 4765 > >> diff --git a/Documentation/git-send-email.adoc b/Documentation/git-send-email.adoc >> index 26fda63c2f..61a2d03546 100644 >> --- a/Documentation/git-send-email.adoc >> +++ b/Documentation/git-send-email.adoc >> @@ -561,6 +561,35 @@ SMTP server with `git send-email`: >> smtpAuth = XOAUTH2 >> ---- >> >> +Use Yahoo as the SMTP Server >> +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> +Just like Gmail, you can use an app-specific password for Yahoo as well. Visit >> +https://help.yahoo.com/kb/SLN15241.html to get instructions for generating >> +them. After generating, edit `~/.gitconfig` to specify your account settings >> +for Yahoo and use its SMTP server with `git send-email`: > > I am starting to doubt the wisdom of giving one section per > provider, especially since the delta between the section is so small > (essentially, the server address, the smtpAuth supported, and their > official documentation URL). Would it make more sense to just have > a template example with placeholders, and a table of placeholder > values that has one row per provider? Umm, not sure how to get that done. Don't have much experience in these docs yk. Also, I don't intend to support more email providers. You also might want to hold off this for a while since I opened a PR here: https://github.com/git/git-scm.com/pull/2005#issuecomment-2880140423 And as per this, we might have to remove the email helper links, from gitcredentials, or move them to a separate section. > >> + >> +---- >> +[sendemail] >> + smtpEncryption = tls >> + smtpServer = smtp.mail.yahoo.com >> + smtpUser = yourname@xxxxxxxxx >> + smtpServerPort = 587 >> +---- >> + >> +If you wish to use OAuth2.0 rather than an app-specific password, you can use >> +either `OAUTHBEARER` or `XOAUTH2` as the authentication method. As an example, >> +if you want to use `OAUTHBEARER`, edit your `~/.gitconfig` file and add >> +`smtpAuth = OAUTHBEARER` to your account settings: