* please see the file GPL in the top level source directory.
*/
-#include <lib-lib/lib-lib.h>
#include <sasl/sasl.h>
#include <sasl/saslutil.h>
cmd_status cmd_uidl : 2; /* optional command UIDL */
cmd_status cmd_top : 2; /* optional command TOP */
cmd_status cmd_user : 2; /* optional command USER */
- unsigned resp_codes : 1; /* server supports extended response codes */
- unsigned expire : 1; /* expire is greater than 0 */
unsigned clear_cache : 1;
ssize_t size;
pop_data->cmd_uidl = CMD_NOT_AVAILABLE;
pop_data->cmd_top = CMD_NOT_AVAILABLE;
pop_data->cmd_user = CMD_NOT_AVAILABLE;
- pop_data->resp_codes = 0;
- pop_data->expire = 1;
p_delete(&pop_data->auth_list);
}
}
/* Check capabilities */
- if (mode == 2) {
+ if (mode == 1) {
const char *msg = NULL;
- if (!pop_data->expire)
- msg = _("Unable to leave messages on server.");
if (pop_data->cmd_top == CMD_NOT_AVAILABLE)
msg = _("Command TOP is not supported by server.");
if (pop_data->cmd_uidl == CMD_NOT_AVAILABLE)
mutt_sleep (2);
return PQ_ERR;
}
- else {
- /* recheck capabilities after STLS completes */
- ret = pop_capabilities (pop_data, 1);
- if (ret == PQ_NOT_CONNECTED)
- goto err_conn;
- if (ret == PQ_ERR) {
- mutt_sleep (2);
- return PQ_ERR;
- }
- }
}
}
return ret;
/* recheck capabilities after authentication */
- ret = pop_capabilities (pop_data, 2);
+ ret = pop_capabilities (pop_data, 1);
if (ret == PQ_NOT_CONNECTED)
goto err_conn;
if (ret == PQ_ERR) {