|
NAMECURLOPT_UPLOAD_FLAGS - upload flags for IMAP SYNOPSIS#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_UPLOAD_FLAGS, long bitmask); DESCRIPTIONPass a long as parameter, which is set to a bitmask, to tell libcurl which flags to send the server relating to uploaded files. The current supported flags are CURLULFLAG_ANSWERED, which sets the Answered flag for IMAP uploads, CURLULFLAG_DELETED, which sets the Deleted flag for IMAP uploads, CURLULFLAG_DRAFT, which sets the Draft flag for IMAP uploads, CURLULFLAG_FLAGGED, which sets the Flagged flag for IMAP uploads, and CURLULFLAG_SEEN, which sets the Seen flag for IMAP uploads. DEFAULTA bitmask with only the CURLULFLAG_SEEN flag set. PROTOCOLSThis functionality affects imap and imaps EXAMPLEstatic size_t read_cb(char *ptr, size_t size, size_t nmemb, void *userdata)
{
AVAILABILITYAdded in curl 8.13.0 RETURN VALUEcurl_easy_setopt(3) returns a CURLcode indicating success or error. CURLE_OK (0) means everything was OK, non-zero means an error occurred, see libcurl-errors(3). SEE ALSOCURLOPT_UPLOAD(3)
|