summaryrefslogtreecommitdiff
path: root/lib/imap.h
Commit message (Collapse)AuthorAgeFilesLines
* curl.se: new homeDaniel Stenberg2020-11-041-1/+1
| | | | Closes #6172
* imap: make imap_send use dynbuf for the send buffer managementDaniel Stenberg2020-09-251-2/+3
| | | | | | Reuses the buffer and thereby reduces number of mallocs over a transfer. Closes #6010
* copyrights: fix copyright year rangeDaniel Stenberg2019-11-081-1/+1
| | | | | | | | .. because checksrc's copyright year check stopped working. Ref: https://github.com/curl/curl/pull/4547 Closes https://github.com/curl/curl/pull/4549
* imap: change from "FETCH" to "UID FETCH"Nicklas Avén2018-09-061-0/+1
| | | | | | | | | | | | ... and add "MAILINDEX". As described in #2789, this is a suggested solution. Changing UID=xx to actually get mail with UID xx and add "MAILINDEX" to get a mail with a special index in the mail box (old behavior). So MAILINDEX=1 gives the first non deleted mail in the mail box. Fixes #2789 Closes #2815
* imap: support PREAUTHDaniel Stenberg2017-08-231-1/+2
| | | | | | | | | | | It is a defined possible greeting at server startup that means the connection is already authenticated. See https://tools.ietf.org/html/rfc3501#section-7.1.4 Test 846 added to verify. Fixes #1818 Closes #1820
* internals: rename the SessionHandle struct to Curl_easyDaniel Stenberg2016-06-221-2/+2
|
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-1/+1
|
* SASL: common state engine for imap/pop3/smtpPatrick Monnerat2015-01-201-14/+1
|
* SASL: common URL option and auth capabilities decoders for all protocolsPatrick Monnerat2015-01-201-1/+1
|
* IMAP/POP3/SMTP: use a per-connection sub-structure for SASL parameters.Patrick Monnerat2015-01-201-4/+2
|
* email: Added mutual authentication flagSteve Holme2014-08-151-0/+1
|
* email: Introduced the GSSAPI statesSteve Holme2014-08-141-0/+3
|
* imap: Extended FETCH support to include PARTIAL URL specifierSteve Holme2014-04-181-0/+1
|
* imap: Added support for parsing URL query stringsSteve Holme2014-04-181-0/+1
| | | | | Added support for parsing query strings from the URL as defined by RFC-5092.
* imap: Introduced the SEARCH stateSteve Holme2014-04-181-1/+2
|
* imap: Fixed incorrect fallback to clear text authenticationSteve Holme2013-12-131-0/+9
| | | | | | | | If a specific SASL authentication mechanism was requested by the user as part of the login options but wasn't supported by the server then curl would fallback to clear text, when it shouldn't, rather than reporting "No known authentication mechanisms supported" as the POP3 and SMTP protocols do.
* email: Added initial support for cancelling authenticationSteve Holme2013-10-271-0/+1
| | | | | | | | | | | | | | | | Should a client application fail to decode an authentication message received from a server, or not support any of the parameters given by the server in the message, then the authentication phrase should be cancelled gracefully by the client rather than simply terminating the connection. The authentication phrase should be cancelled by simply sending a '*' to the server, in response to erroneous data being received, as per RFC-3501, RFC-4954 and RFC-5034. This patch adds the necessary state machine constants and appropriate response handlers in order to add this functionality for the CRAM-MD5, DIGEST-MD5 and NTLM authentication mechanisms.
* imap: added basic SASL XOAUTH2 supportKyle L. Huff2013-08-261-0/+1
| | | | | | | | | | | Added the ability to use an XOAUTH2 bearer token [RFC6750] with IMAP for authentication using RFC6749 "OAuth 2.0 Authorization Framework". The bearer token is expected to be valid for the user specified in conn->user. If CURLOPT_XOAUTH2_BEARER is defined and the connection has an advertised auth mechanism of "XOAUTH2", the user and access token are formatted as a base64 encoded string and sent to the server as "A001 AUTHENTICATE XOAUTH2 <bearer token>".
* imap: Added support for ;auth=<mech> in the URLSteve Holme2013-04-131-0/+1
| | | | | Added support for specifying the preferred authentication mechanism in the URL as per RFC-5092.
* imap: Removed the need for separate custom request functionsSteve Holme2013-03-091-1/+0
| | | | | Moved the custom request processing into the LIST command as the logic is the same.
* imap: Introduced IMAP_LIST stateSteve Holme2013-03-051-0/+1
|
* imap: Introduced custom request parametersJiri Hruska2013-03-031-0/+2
| | | | Added custom request parameters to the per-request structure.
* imap: Introduced IMAP_CUSTOM stateJiri Hruska2013-03-031-0/+1
|
* imap: Introduced IMAP_APPEND and IMAP_APPEND_FINAL statesJiri Hruska2013-03-021-0/+2
|
* imap: Introduced FETCH_FINAL state for processing final fetch responsesJiri Hruska2013-02-281-0/+1
| | | | | | | | | | | | A typical FETCH response can be broken down into four parts: 1) "* <uid> FETCH (<what> {<size>}\r\n", using continuation syntax 2) <size> bytes of the actual message 3) ")\r\n", finishing the untagged response 4) "<tag> OK ...", finishing the command Part 1 is read in imap_fetch_resp(), part 2 is consumed in the PERFORM phase by the transfer subsystem, parts 3 and 4 are currently ignored.
* imap: Re-factored final IMAP_AUTHENTICATE constantSteve Holme2013-02-271-1/+1
| | | | | Changed the final IMAP_AUTHENTICATE constant to IMAP_AUTHENTICATE_FINAL for consistency with the response function.
* imap: Introduced the mailbox variableJiri Hruska2013-02-271-0/+1
| | | | | Added the mailbox variable to the per-connection structure in preparation for checking for an already selected mailbox.
* email: Slight reordering of connection based variablesSteve Holme2013-02-261-2/+2
| | | | | | Reordered the state and ssl_done variables in order to provide more consistency between the email protocols as well as for for an upcoming change.
* imap: Tidied up comments for connection based variablesSteve Holme2013-02-261-10/+10
|
* imap: Introduced the mailbox_uidvalidity variableJiri Hruska2013-02-261-0/+1
| | | | | Added the mailbox_uidvalidity variable to the per-connection structure in preparation for checking the UIDVALIDITY mailbox attribute.
* imap: Removed bytecountp from the per-request structureJiri Hruska2013-02-251-1/+0
| | | | | | | Removed this pointer to a downloaded bytes counter because it was set in imap_init() to point to the same variable the transfer functions keep the count in (k->bytecount), effectively making the code in transfer.c "*k->bytecountp = k->bytecount" a no-op.
* imap: Introduced new per-request veriablesJiri Hruska2013-02-231-0/+3
| | | | | Added uidvalidity, uid and section variables to the per-request IMAP structure in preparation for upcoming URL parsing.
* pingpong: Renamed curl_ftptransfer to curl_pp_transferSteve Holme2013-02-231-1/+1
|
* pingpong: Moved curl_ftptransfer definition to pingpong.hSteve Holme2013-02-231-1/+0
| | | | | Moved the ftp transfer structure into pingpong.h so other protocols that require it don't have to include ftp.h.
* imap: Removed some FTP heritage leftoversJiri Hruska2013-02-231-2/+0
| | | | | Removed user and passwd from the IMAP struct as these cannot be set on a per-request basis and are leftover from legacy FTP code.
* imap: Introduced a custom IMAP structure for per-request dataJiri Hruska2013-02-231-1/+13
| | | | | | | | Created a new IMAP structure and changed the type of the imap proto variable in connectdata from FTP* to the new IMAP*. Moved the mailbox variable from the per-connection struct imap_conn to the new per-request struct and fixed references accordingly.
* email: Post STARTLS capability code tidy up (Part One)Steve Holme2013-02-101-1/+1
| | | | | Corrected the order of the CAPA / CAPABILITY state machine constants to match the execution order.
* imap: Added support for the STARTTLS capability (Part One)Steve Holme2013-02-101-0/+1
| | | | | Introduced detection of the STARTTLS capability, in order to add support for TLS upgrades without unconditionally sending the STARTTLS command.
* imap: Added support for SASL-IR extension (Part 1)Steve Holme2013-02-071-0/+1
| | | | | | Introduced detection of the SASL-IR capability, in order to add support for sending the initial response with the AUTHENTICATE command, as per RFC4959.
* imap: Changed response tag generation to be completely uniqueSteve Holme2013-02-071-1/+1
| | | | | | | | | | Updated the automatic response tag generation to follow the examples given in RC3501, which list a 4 character string such as A001, A002, etc. As a unique identifier should be generated for each command the string generation is based on the connection id and the incrementing command id.
* imap: Small variable rename in preparation for upcoming changeSteve Holme2013-02-061-2/+2
| | | | | Renamed a couple of variables and updated some comments in preparation for upcoming command id / response tag change.
* imap.h: Corrected incorrect comment clarificationSteve Holme2013-02-051-1/+1
| | | | Corrected comment clarification made in commit 167717b8069a.
* imap: Fixed no known authentication mechanism when fallback is requiredSteve Holme2013-02-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | Fixed an issue where (lib)curl is compiled without support for a supported challenge-response based SASL authentication mechanism, such as CRAM-MD5 or NTLM, the server doesn't support the LOGIN or PLAIN mechanisms and (lib)curl doesn't fallback to Clear Text authentication. Note: In order to fallback to Clear Text authentication properly this fix adds support for the LOGINDISABLED server capability. imap: Fixed no known authentication mechanism when fallback is required Fixed an issue where (lib)curl is compiled without support for a supported challenge-response based SASL authentication mechanism, such as CRAM-MD5 or NTLM, the server doesn't support the LOGIN or PLAIN mechanisms and (lib)curl doesn't fallback to Clear Text authentication. Note: In order to fallback to Clear Text authentication properly this fix adds support for the LOGINDISABLED server capability. Related bug: http://curl.haxx.se/mail/lib-2013-02/0004.html Reported by: Stanislav Ivochkin
* email: Updated comment regarding ssldone usageSteve Holme2013-01-261-2/+1
| | | | Updated the ssldone comment as multi mode is always used internally now.
* imap: Added support for sasl digest-md5 authenticationSteve Holme2013-01-071-0/+2
|
* imap: Added support for sasl cram-md5 authenticationSteve Holme2013-01-071-0/+1
|
* imap: Added support for sasl ntlm authenticationSteve Holme2013-01-071-0/+2
|
* imap: Added support for sasl login authenticationSteve Holme2013-01-061-0/+2
|
* imap: Added support for sasl plain text authenticationSteve Holme2013-01-061-0/+3
|
* imap: Added support for SASL based authentication mechanism detectionSteve Holme2013-01-061-7/+9
| | | | | Added support for detecting the supported SASL authentication mechanisms via the CAPABILITY command.