Enlightenment CVS committal
Author : devilhorns
Project : e_modules
Module : mail
Dir : e_modules/mail
Modified Files:
imap.c
Log Message:
Patch from rephorm to make imap work again, Thanks mate :)
===================================================================
RCS file: /cvs/e/e_modules/mail/imap.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- imap.c 15 Sep 2006 17:20:17 -0000 1.13
+++ imap.c 12 Jan 2007 01:23:56 -0000 1.14
@@ -59,8 +59,9 @@
}
}
}
- is->current = evas_list_nth (is->clients, 0);
- ic = is->current;
+ is->current = is->clients;
+ if (!is->current) break;
+ ic = is->current->data;
}
}
@@ -259,7 +260,8 @@
}
}
- ic = is->current;
+ if (!is->current) return 0;
+ ic = is->current->data;
is->state++;
switch (is->state)
@@ -287,29 +289,18 @@
if ((num > 0) && (ic->config->use_exec) && (ic->config->exec))
_mail_start_exe (ic->config);
- is->clients = is->clients->next;
- if (is->clients)
+ is->current = is->current->next;
+ if (is->current)
{
- is->current = is->clients->data;
- if (is->current)
- {
- ic = is->current;
+ if (is->current->data)
is->state = IMAP_STATE_SERVER_READY;
- }
else
- {
_mail_imap_server_logout (is);
- ic = NULL;
- }
}
else
- {
_mail_imap_server_logout (is);
- ic = NULL;
- }
}
- if (!ic)
- break;
+ break;
default:
break;
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs