[Goodies-commits] r5256 -	xfce4-mailwatch-plugin/trunk/libmailwatch-core
    Brian Tarricone 
    kelnos at xfce.org
       
    Sat Aug 16 12:39:23 CEST 2008
    
    
  
Author: kelnos
Date: 2008-08-16 10:39:23 +0000 (Sat, 16 Aug 2008)
New Revision: 5256
Modified:
   xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-imap.c
   xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-pop3.c
Log:
add another 'cancellation point'
Modified: xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-imap.c
===================================================================
--- xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-imap.c	2008-08-16 10:33:07 UTC (rev 5255)
+++ xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-imap.c	2008-08-16 10:39:23 UTC (rev 5256)
@@ -243,6 +243,9 @@
             return tot + bin;
 
         tot += bin;
+
+        if(!imap_should_continue(net_conn, imailbox))
+            return -1;
     }
 
     g_critical("imap_recv_command(): buffer full!");
Modified: xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-pop3.c
===================================================================
--- xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-pop3.c	2008-08-16 10:33:07 UTC (rev 5255)
+++ xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-pop3.c	2008-08-16 10:39:23 UTC (rev 5256)
@@ -163,6 +163,9 @@
         }
 
         tot += bin;
+
+        if(!pop3_should_continue(pmailbox->net_conn, pmailbox))
+            return -1;
     }
 
     g_critical("pop3_recv_command(): buffer full!");
    
    
More information about the Goodies-commits
mailing list