masqmail-0.2

diff src/accept.c @ 117:5ec5e6637049

added server-side SMTP SIZE support (patch by Paolo) ``SIZE 0'' (= unlimited) is currently not supported client-side support was already implemented
author meillo@marmaro.de
date Thu, 01 Jul 2010 13:08:53 +0200
parents 43798acdfbc9
children cd59a5b4d3dd
line diff
     1.1 --- a/src/accept.c	Wed Jun 30 15:45:34 2010 +0200
     1.2 +++ b/src/accept.c	Thu Jul 01 13:08:53 2010 +0200
     1.3 @@ -155,6 +155,13 @@
     1.4  				line_cnt++;
     1.5  			}
     1.6  		}
     1.7 +		if (data_size > conf.max_msg_size) {
     1.8 +			DEBUG(4) debugf("accept_message_stream(): "
     1.9 +					"received %d bytes (conf.max_msg_size=%d)\n",
    1.10 +			                data_size, conf.max_msg_size);
    1.11 +			return AERR_SIZE;
    1.12 +		}
    1.13 +
    1.14  	}
    1.15  
    1.16  	if (msg->data_list != NULL)