#include "inc.h"
#include "recv.h"
#include "selective_download.h"
-#if USE_SSL
+#include "log.h"
+#if USE_OPENSSL
# include "ssl.h"
#endif
if ((ok = pop3_ok(sock, buf)) == PS_SUCCESS) {
state->greeting = g_strdup(buf);
-#if USE_SSL
+#if USE_OPENSSL
if (state->ac_prefs->ssl_pop == SSL_STARTTLS)
return POP3_STLS_SEND;
#endif
}
}
-#if USE_SSL
+#if USE_OPENSSL
gint pop3_stls_send(SockInfo *sock, gpointer data)
{
pop3_gen_send(sock, "STLS");
return -1;
}
}
-#endif /* USE_SSL */
+#endif /* USE_OPENSSL */
gint pop3_getauth_user_send(SockInfo *sock, gpointer data)
{
if ( (write_val = recv_write_to_file(sock, filename)) < 0) {
state->error_val = (write_val == -1 ? PS_IOERR : PS_SOCKET);
+ g_free(path);
+ g_free(filename);
return -1;
}
-
+
+ g_free(path);
+ g_free(filename);
+
pop3_sd_state(state, POP3_TOP_RECV, &next_state);
if (state->cur_msg < state->count) {
state->ac_prefs->msg_list = g_slist_append(state->ac_prefs->msg_list,
new_msg);
+ debug_print("received ?: msg %i, received: %i\n",new_msg->index, new_msg->received);
}
}