Thread (1 message) 1 message, 1 author, 2017-08-07
DORMANTno replies

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

From: Nicolas Morey-Chaisemartin <hidden>
Date: 2017-08-07 14:04:12
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Nicolas Morey-Chaisemartin <redacted>
---
 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

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