Third and Final attemp at imap working again. It does work again now with

multiple accounts.


SVN revision: 23421
This commit is contained in:
Christopher Michael 2006-06-13 15:59:19 +00:00
parent 19b039b799
commit 3bfc85b5f8
1 changed files with 6 additions and 4 deletions

10
imap.c
View File

@ -16,6 +16,7 @@ _mail_imap_check_mail(void *data)
{
Ecore_Con_Type type = ECORE_CON_REMOTE_SYSTEM;
Evas_List *l, *j;
ImapClient *ic;
for (l = iservers; l; l = l->next)
{
@ -34,8 +35,6 @@ _mail_imap_check_mail(void *data)
for (j = is->clients; j; j = j->next)
{
ImapClient *ic;
ic = j->data;
if (!ic->server->server)
{
@ -48,6 +47,7 @@ _mail_imap_check_mail(void *data)
}
}
is->current = evas_list_nth(is->clients, 0);
ic = is->current;
}
}
@ -121,6 +121,9 @@ _mail_imap_client_get(void *data)
Config_Box *cb;
Evas_List *l, *j;
int found = 0;
cb = data;
if (!cb) return;
if ((!iservers) || (evas_list_count(iservers) <= 0))
{
@ -151,7 +154,6 @@ _mail_imap_client_get(void *data)
}
if (!found)
{
cb = data;
ic = E_NEW(ImapClient, 1);
ic->config = cb;
ic->server = is;
@ -255,7 +257,7 @@ _mail_imap_server_data(void *data, int type, void *event)
if ((num > 0) && (ic->config->use_exec) && (ic->config->exec))
_mail_start_exe(ic->config);
is->clients = evas_list_next(is->clients);
is->clients = is->clients->next;
if (is->clients)
{
is->current = is->clients->data;