Enlightenment CVS committal

Author  : tsauerbeck
Project : misc
Module  : embrace

Dir     : misc/embrace/src/plugins/imap


Modified Files:
        imap.c 


Log Message:
whoa, helpful error messages
===================================================================
RCS file: /cvsroot/enlightenment/misc/embrace/src/plugins/imap/imap.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- imap.c      8 May 2004 20:54:23 -0000       1.12
+++ imap.c      6 Jun 2004 09:07:31 -0000       1.13
@@ -1,5 +1,5 @@
 /*
- * $Id: imap.c,v 1.12 2004/05/08 20:54:23 tsauerbeck Exp $
+ * $Id: imap.c,v 1.13 2004/06/06 09:07:31 tsauerbeck Exp $
  * vim:noexpandtab:ts=4:sw=4:sts=4
  *
  * Copyright (C) 2004 Embrace project.
@@ -158,17 +158,17 @@
        char *host;
        int port;
 
-       if (mailbox_property_get (mb, "server")) {
-               fprintf (stderr, "[imap] already connected!\n");
-               return false;
-       }
-
        host = mailbox_property_get (mb, "host"),
        port = (int) mailbox_property_get (mb, "port");
 
        assert (host);
        assert (port);
 
+       if (mailbox_property_get (mb, "server")) {
+               fprintf (stderr, "[imap] already connected to '%s'\n", host);
+               return false;
+       }
+
 #ifdef HAVE_OPENSSL
        if ((int) mailbox_property_get (mb, "ssl"))
                type |= ECORE_CON_USE_SSL;




-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to