Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir     : e_modules/mail


Modified Files:
        e_mod_main.c 


Log Message:
Fix potential imap issue. Wrong state was getting set.

===================================================================
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- e_mod_main.c        7 Jun 2006 22:34:08 -0000       1.5
+++ e_mod_main.c        8 Jun 2006 09:02:34 -0000       1.6
@@ -500,6 +500,7 @@
          type |= ECORE_CON_USE_SSL;
        inst->server = ecore_con_server_connect(type, ci->host, ci->port, inst);
        inst->state = STATE_DISCONNECTED;
+       inst->cmd = 0;
      }
    return 1;
 }
@@ -543,6 +544,7 @@
    
    ecore_con_server_del(inst->server);
    inst->server = NULL;
+   inst->cmd = 0;
    return 0;
 }
 
@@ -721,6 +723,7 @@
       case STATE_LOGGED_IN:
        len = snprintf(out, sizeof(out), "A%03i STATUS %s (MESSAGES 
UNSEEN)\r\n",++inst->cmd, ci->path);
        ecore_con_server_send(inst->server, out, len);
+       inst->state = STATE_PASS_OK;
        break;
       default:
        break;




_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to