summaryrefslogtreecommitdiff
path: root/lib/imap.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-09-24 23:04:15 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-09-25 08:35:01 +0200
commitc4693adc62e44e7abaa6a8aa2180693bcf120b43 (patch)
tree284cb791c85bd184451a91b76dfb83dd7f753765 /lib/imap.h
parent92a9b88ebf7aa61d8183e633106f554f3f39bf74 (diff)
downloadcurl-c4693adc62e44e7abaa6a8aa2180693bcf120b43.tar.gz
imap: make imap_send use dynbuf for the send buffer management
Reuses the buffer and thereby reduces number of mallocs over a transfer. Closes #6010
Diffstat (limited to 'lib/imap.h')
-rw-r--r--lib/imap.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/imap.h b/lib/imap.h
index 4786f5624..8f373d284 100644
--- a/lib/imap.h
+++ b/lib/imap.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 2009 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2009 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -75,13 +75,14 @@ struct imap_conn {
bool preauth; /* Is this connection PREAUTH? */
struct SASL sasl; /* SASL-related parameters */
unsigned int preftype; /* Preferred authentication type */
- int cmdid; /* Last used command ID */
+ unsigned int cmdid; /* Last used command ID */
char resptag[5]; /* Response tag to wait for */
bool tls_supported; /* StartTLS capability supported by server */
bool login_disabled; /* LOGIN command disabled by server */
bool ir_supported; /* Initial response supported by server */
char *mailbox; /* The last selected mailbox */
char *mailbox_uidvalidity; /* UIDVALIDITY parsed from select response */
+ struct dynbuf dyn; /* for the IMAP commands */
};
extern const struct Curl_handler Curl_handler_imap;