]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
imap-append.c: update to make it more likely to work
authorMargu <44941663+Margu86@users.noreply.github.com>
Fri, 30 Jun 2023 06:32:13 +0000 (08:32 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 9 Jul 2023 16:58:39 +0000 (18:58 +0200)
Fixes #10300
Closes #11397

docs/examples/imap-append.c

index 1abfda3fda356a6183e71ec54fbe159ccfde38ad..e87e1acaa0ad2c5c1863f550ea30eca3b1044502 100644 (file)
@@ -99,10 +99,8 @@ int main(void)
     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
-     * SELECT to ensure you are creating the message in the OUTBOX. */
-    curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/100");
+    /* This will create a new message in folder "Sent". */
+    curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/Sent");
 
     /* In this case, we are using a callback function to specify the data. You
      * could just use the CURLOPT_READDATA option to specify a FILE pointer to