Enlightenment CVS committal

Author  : englebass
Project : e_modules
Module  : mail

Dir     : e_modules/mail


Modified Files:
        imap2.c 


Log Message:
SEARCH after IDLE has completed. Should be redundant, but it seems here
that I miss some updates after hibernating.

===================================================================
RCS file: /cvs/e/e_modules/mail/imap2.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- imap2.c     25 Jul 2007 18:28:17 -0000      1.9
+++ imap2.c     2 Aug 2007 17:13:18 -0000       1.10
@@ -470,7 +470,7 @@
        else if (!strcmp (result, "SEARCH"))
          {
             ic->config->num_new = elements (value);
-            printf ("New mail: %d\n", ic->config->num_new);
+            printf ("New mail (%s:%s): %d\n", ic->config->host, 
ic->config->new_path, ic->config->num_new);
          }
        else
          {
@@ -555,6 +555,10 @@
    len = snprintf (out, sizeof (out), "DONE\r\n");
    ecore_con_server_send (ic->server, out, len);
    ic->idling = 0;
+ 
+   //ic->state = IMAP_STATE_SEARCH_UNSEEN;
+   //ic->state = IMAP_STATE_SEARCH_RECENT;
+   ic->state = IMAP_STATE_SEARCH_NEW;
 }
 
 static void
@@ -565,6 +569,10 @@
 
    len = snprintf (out, sizeof (out), "A%04i NOOP\r\n", ic->cmd++);
    ecore_con_server_send (ic->server, out, len);
+ 
+   //ic->state = IMAP_STATE_SEARCH_UNSEEN;
+   //ic->state = IMAP_STATE_SEARCH_RECENT;
+   ic->state = IMAP_STATE_SEARCH_NEW;
 }
 
 static int



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to