Fixed by increasing buffer from 1024 to 10240 bytes
+2009-01-03 Hugo Villeneuve <hugo@hugovil.com>
+ Fixes a problem when receiving more than 1024 bytes
+ from IMAP4 server (increased buffer from 1024 to 10240 bytes).
+
2006-02-19 Bobby <jborgdor at cs dot uu dot nl>
* Replaced deprecated function OpenSSL_add_all_algorithms() with
SSL_library_init(), because OpenSSL_add_all_algorithms() is no
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;
}
/* POP3 responses may be up to 512 characters long, including the terminating
- CRLF. */
-#define WMNOTIFY_BUFSIZE 1024
+ CRLF. IMAP4 responses can be more than 1024 characters. */
+#define WMNOTIFY_BUFSIZE 10240
int