Fixed a bug when receiving more than 1024 bytes from IMAP4 server
[dockapps/wmnotify.git] / src / imap.c
index 0e4c03e..03837c5 100644 (file)
@@ -79,10 +79,9 @@ IMAP4_ReceiveResponse( void )
     goto error;
   }
   else if( len == WMNOTIFY_BUFSIZE ) {
-    /* This shouldn't happen, the examine command doesn't requires that much data. */
     if( wmnotify_infos.debug ) {
       ErrorLocation( __FILE__, __LINE__ );
-      fprintf( stderr, "Response too big to fit in receive buffer.\n" );
+      fprintf( stderr, "Response too big (%d bytes) to fit in receive buffer.\n", len );
     }
     goto error;
   }