aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/imap-append.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/imap-append.c')
-rw-r--r--docs/examples/imap-append.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/examples/imap-append.c b/docs/examples/imap-append.c
index ce8d0421b..8f0ebcb3b 100644
--- a/docs/examples/imap-append.c
+++ b/docs/examples/imap-append.c
@@ -84,7 +84,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 will create a new message 100. Note that you should perform an
* EXAMINE command to obtain the UID of the next message to create and a