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

send-email and credential

From
D. Ben Knoble <ben.knoble@gmail.com>
Date
Aug 12, 2019, 22:00 UTC
Message-ID
<CALnO6CDFQA_QmR_2tczPNJiymfUxt8LUiF0HOvKJKreB_HmNuQ@mail.gmail.com>
Hello all,

I spent a frustrating hour today hoping to setup git-send-email with my gmail account. I've been able to confirm the following:

1. git credential works
    # git config credential.helper
    osxkeychain
    # git credential fill <<EOF
    protocol=smtp
    host=smtp.gmail.com
    EOF
outputs the correct username and password for my gmail account.
2. I (believe) I setup gitconfig properly:
    # git config --get-regexp sendemail
    sendemail.smtpserver smtp.gmail.com
    sendemail.smtpuser ben.knoble@gmail.com
    sendemail.smtpencryption tls
    sendemail.smtpserverport 587
    sendemail.multiedit true
    sendemail.annotate true
The strange behavior I'm seeing is that git-send-email
- prompted me via macOS for keychain access (expected). This happened
twice in a row, during one command invocation.
- prompted me at the terminal for my gmail password (shudders)
- stopped prompting me for messages send after that (all within the 15
minutes of the first two)

Can anyone confirm/explain what's going on? I've never tried to use git-credential or git-send-email before, so I'm new to those (but experienced in git).

D. Ben Knoble
Next: Jeff King
Message 1 of 3 in “send-email and credential”
  1. D. Ben KnobleAug 12, 2019
  2. Jeff KingAug 12, 2019
  3. D. Ben KnobleAug 12, 2019

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.