Enlightenment CVS committal
Author : tsauerbeck
Project : misc
Module : embrace
Dir : misc/embrace/src/plugins/imap
Modified Files:
imap.c
Log Message:
make sure we are connected when we're receiving data
===================================================================
RCS file: /cvsroot/enlightenment/misc/embrace/src/plugins/imap/imap.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- imap.c 18 Apr 2004 13:02:36 -0000 1.11
+++ imap.c 8 May 2004 20:54:23 -0000 1.12
@@ -1,5 +1,5 @@
/*
- * $Id: imap.c,v 1.11 2004/04/18 13:02:36 tsauerbeck Exp $
+ * $Id: imap.c,v 1.12 2004/05/08 20:54:23 tsauerbeck Exp $
* vim:noexpandtab:ts=4:sw=4:sts=4
*
* Copyright (C) 2004 Embrace project.
@@ -80,14 +80,15 @@
embrace_strstrip (inbuf);
state = (State) mailbox_property_get (mb, "state");
+ assert (state);
if (!strncmp (inbuf, "* NO", 4)) {
fprintf (stderr, "[imap] failure: %s\n", &inbuf[5]);
return 0;
} else if (!strncmp (inbuf, "* BAD", 5)) {
fprintf (stderr, "[imap] bad command: %s\n", &inbuf[6]);
- return 0;
- }
+ return 0;
+ }
mailbox_property_set (mb, "state", (void *) ++state);
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs