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

[PATCH 2/4] imap_send: setup_curl: prompt user for username/password if not set in config file

From
Nicolas Morey-Chaisemartin <nicolas@morey-chaisemartin.com>
Date
Aug 7, 2017, 14:03 UTC
Message-ID
<38d3ae5b-4020-63cc-edfa-0a77e42798b8@morey-chaisemartin.com>
In-Reply-To
<c74c8c386f2c2d8b6cebd4addf925d0121986067.1502114584.git.nicolas@morey-chaisemartin.com>
Signed-off-by: Nicolas Morey-Chaisemartin <nicolas@morey-chaisemartin.com>
---
 imap-send.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/imap-send.c b/imap-send.c
index 38b3c817e..682a06551 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -1415,6 +1415,7 @@ static CURL *setup_curl(struct imap_server_conf *srvc)
 	if (!curl)
 		die("curl_easy_init failed");
 
+	server_fill_credential(&server);
 	curl_easy_setopt(curl, CURLOPT_USERNAME, server.user);
 	curl_easy_setopt(curl, CURLOPT_PASSWORD, server.pass);
 
-- 
2.14.0.rc1.16.g87fcec1e8
Next: Nicolas Morey-Chaisemartin
Message 1 of 13 in “imap_send: setup_curl: prompt user for username/password if not set in config file”
  1. 2/4 imap_send: setup_curl: prompt user for username/password if not set in config fileNicolas Morey-Chaisemartin, Aug 7, 2017
  2. 3/4 imap_send: setup_curl: use server_conf parameter instead of the global variableNicolas Morey-Chaisemartin, Aug 7, 2017
  3. Martin ÅgrenAug 7, 2017
  4. Nicolas Morey-ChaisemartinAug 7, 2017
  5. Jeff KingAug 7, 2017
  6. 4/4 imap-send: use curl by defaultNicolas Morey-Chaisemartin, Aug 7, 2017
  7. Martin ÅgrenAug 7, 2017
  8. Nicolas Morey-ChaisemartinAug 7, 2017
  9. Martin ÅgrenAug 7, 2017
  10. Jeff KingAug 7, 2017
  11. Junio C HamanoSep 12, 2017
  12. Junio C HamanoSep 12, 2017
  13. Nicolas Morey-ChaisemartinSep 12, 2017

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.