aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/imap-delete.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/imap-delete.c')
-rw-r--r--docs/examples/imap-delete.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/examples/imap-delete.c b/docs/examples/imap-delete.c
index 2358012ef..5113be9ab 100644
--- a/docs/examples/imap-delete.c
+++ b/docs/examples/imap-delete.c
@@ -36,7 +36,8 @@ int main(void)
curl = curl_easy_init();
if(curl) {
/* Set username and password */
- curl_easy_setopt(curl, CURLOPT_USERPWD, "user:password");
+ curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
+ curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
/* This is just the server URL */
curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com");