masqmail

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 diff
     1.1 --- a/src/accept.c	Thu Jul 01 13:11:38 2010 +0200
     1.2 +++ b/src/accept.c	Thu Jul 01 13:30:30 2010 +0200
     1.3 @@ -155,7 +155,7 @@
     1.4  				line_cnt++;
     1.5  			}
     1.6  		}
     1.7 -		if (data_size > conf.max_msg_size) {
     1.8 +		if (conf.max_msg_size && (data_size > conf.max_msg_size)) {
     1.9  			DEBUG(4) debugf("accept_message_stream(): "
    1.10  					"received %d bytes (conf.max_msg_size=%d)\n",
    1.11  			                data_size, conf.max_msg_size);