diff src/accept.c @ 120:cd59a5b4d3dd

added support for SMTP SIZE 0 (unlimited)
author meillo@marmaro.de
date Thu, 01 Jul 2010 13:30:30 +0200
parents 5ec5e6637049
children 89f951be358f
line wrap: on
line diff
--- a/src/accept.c	Thu Jul 01 13:11:38 2010 +0200
+++ b/src/accept.c	Thu Jul 01 13:30:30 2010 +0200
@@ -155,7 +155,7 @@
 				line_cnt++;
 			}
 		}
-		if (data_size > conf.max_msg_size) {
+		if (conf.max_msg_size && (data_size > conf.max_msg_size)) {
 			DEBUG(4) debugf("accept_message_stream(): "
 					"received %d bytes (conf.max_msg_size=%d)\n",
 			                data_size, conf.max_msg_size);