Mercurial > masqmail
comparison 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 |
comparison
equal
deleted
inserted
replaced
119:1e2fd87d58ea | 120:cd59a5b4d3dd |
---|---|
153 msg->data_list = g_list_prepend(msg->data_list, g_strdup(line1)); | 153 msg->data_list = g_list_prepend(msg->data_list, g_strdup(line1)); |
154 data_size += strlen(line1); | 154 data_size += strlen(line1); |
155 line_cnt++; | 155 line_cnt++; |
156 } | 156 } |
157 } | 157 } |
158 if (data_size > conf.max_msg_size) { | 158 if (conf.max_msg_size && (data_size > conf.max_msg_size)) { |
159 DEBUG(4) debugf("accept_message_stream(): " | 159 DEBUG(4) debugf("accept_message_stream(): " |
160 "received %d bytes (conf.max_msg_size=%d)\n", | 160 "received %d bytes (conf.max_msg_size=%d)\n", |
161 data_size, conf.max_msg_size); | 161 data_size, conf.max_msg_size); |
162 return AERR_SIZE; | 162 return AERR_SIZE; |
163 } | 163 } |