Imap "Should" work again, cannot test it here tho.
SVN revision: 23420
This commit is contained in:
parent
66b28af210
commit
19b039b799
17
imap.c
17
imap.c
|
@ -41,8 +41,8 @@ _mail_imap_check_mail(void *data)
|
|||
{
|
||||
if (ecore_con_ssl_available_get() && (ic->config->ssl))
|
||||
type |= ECORE_CON_USE_SSL;
|
||||
ic->server->server = ecore_con_server_connect(type, ic->config->host, ic->config->port, NULL);
|
||||
ic->server->state = IMAP_STATE_DISCONNECTED;
|
||||
ic->server->server = ecore_con_server_connect(type, ic->config->host, ic->config->port, NULL);
|
||||
ic->server->cmd = 0;
|
||||
}
|
||||
}
|
||||
|
@ -122,9 +122,6 @@ _mail_imap_client_get(void *data)
|
|||
Evas_List *l, *j;
|
||||
int found = 0;
|
||||
|
||||
cb = data;
|
||||
if (!cb) return NULL;
|
||||
|
||||
if ((!iservers) || (evas_list_count(iservers) <= 0))
|
||||
{
|
||||
is = E_NEW(ImapServer, 1);
|
||||
|
@ -154,6 +151,7 @@ _mail_imap_client_get(void *data)
|
|||
}
|
||||
if (!found)
|
||||
{
|
||||
cb = data;
|
||||
ic = E_NEW(ImapClient, 1);
|
||||
ic->config = cb;
|
||||
ic->server = is;
|
||||
|
@ -194,6 +192,7 @@ _mail_imap_server_del(void *data, int type, void *event)
|
|||
ecore_con_server_del(is->server);
|
||||
is->server = NULL;
|
||||
|
||||
_mail_set_text(is->data);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -252,7 +251,6 @@ _mail_imap_server_data(void *data, int type, void *event)
|
|||
{
|
||||
ic->config->num_new = num;
|
||||
ic->config->num_total = total;
|
||||
_mail_set_text(is->data);
|
||||
|
||||
if ((num > 0) && (ic->config->use_exec) && (ic->config->exec))
|
||||
_mail_start_exe(ic->config);
|
||||
|
@ -261,6 +259,9 @@ _mail_imap_server_data(void *data, int type, void *event)
|
|||
if (is->clients)
|
||||
{
|
||||
is->current = is->clients->data;
|
||||
if (is->current)
|
||||
{
|
||||
ic = is->current;
|
||||
is->state = IMAP_STATE_SERVER_READY;
|
||||
}
|
||||
else
|
||||
|
@ -269,6 +270,12 @@ _mail_imap_server_data(void *data, int type, void *event)
|
|||
ic = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_mail_imap_server_logout(is);
|
||||
ic = NULL;
|
||||
}
|
||||
}
|
||||
if (!ic) break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue