Lines Matching refs:pop3
21 * RFC1734 POP3 Authentication
22 * RFC1939 POP3 protocol
25 * RFC2449 POP3 Extension Mechanism
26 * RFC2595 Using TLS with IMAP, POP3 and ACAP
31 * RFC5034 POP3 SASL Authentication Mechanism
72 #include "pop3.h"
110 * POP3 protocol handler.
114 "POP3", /* scheme */
163 /* SASL parameters for the pop3 protocol */
191 * Checks for an ending POP3 status code at the start of the given string, but
278 * This is the ONLY way to change POP3 state!
301 infof(conn->data, "POP3 %p state change from %s to %s\n",
551 * Sends a POP3 based command.
557 struct POP3 *pop3 = data->req.protop;
561 if(pop3->id[0] == '\0' || conn->data->set.ftp_list_only) {
564 if(pop3->id[0] != '\0')
566 pop3->transfer = FTPTRANSFER_INFO;
572 if(pop3->id[0] != '\0')
574 (pop3->custom && pop3->custom[0] != '\0' ?
575 pop3->custom : command), pop3->id);
578 (pop3->custom && pop3->custom[0] != '\0' ?
579 pop3->custom : command));
621 failf(data, "Got unexpected pop3-server response");
884 struct POP3 *pop3 = data->req.protop;
905 if(pop3->transfer == FTPTRANSFER_BODY) {
906 /* POP3 download */
943 /* Busy upgrading the connection; right now all I/O is SSL/TLS, not POP3 */
960 /* We have now received a full POP3 server response */
1037 /* Allocate and initialize the POP3 struct for the current Curl_easy if
1043 struct POP3 *pop3;
1045 pop3 = data->req.protop = calloc(sizeof(struct POP3), 1);
1046 if(!pop3)
1052 /* For the POP3 "protocol connect" and "doing" phases only */
1077 /* We always support persistent connections in POP3 */
1078 connkeep(conn, "POP3 default");
1120 struct POP3 *pop3 = data->req.protop;
1124 if(!pop3)
1128 connclose(conn, "POP3 done with bad status");
1133 Curl_safefree(pop3->id);
1134 Curl_safefree(pop3->custom);
1137 pop3->transfer = FTPTRANSFER_BODY;
1146 * This is the actual DO function for POP3. Get a message/listing according to
1152 /* This is POP3 and no proxy */
1154 struct POP3 *pop3 = conn->data->req.protop;
1160 pop3->transfer = FTPTRANSFER_INFO;
1215 * Disconnect from an POP3 server. Cleanup protocol-specific per-connection
1226 /* The POP3 session may or may not have been allocated/setup at this
1308 /* Initialise the POP3 layer */
1387 /* The POP3 struct is already initialised in pop3_connect() */
1389 struct POP3 *pop3 = data->req.protop;
1393 return Curl_urldecode(data, path, 0, &pop3->id, NULL, TRUE);
1406 struct POP3 *pop3 = data->req.protop;
1411 result = Curl_urldecode(data, custom, 0, &pop3->custom, NULL, TRUE);