Mercurial > masqmail
comparison 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 |
comparison
equal
deleted
inserted
replaced
116:ddc8041fdee1 | 117:5ec5e6637049 |
---|---|
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) { | |
159 DEBUG(4) debugf("accept_message_stream(): " | |
160 "received %d bytes (conf.max_msg_size=%d)\n", | |
161 data_size, conf.max_msg_size); | |
162 return AERR_SIZE; | |
163 } | |
164 | |
158 } | 165 } |
159 | 166 |
160 if (msg->data_list != NULL) | 167 if (msg->data_list != NULL) |
161 msg->data_list = g_list_reverse(msg->data_list); | 168 msg->data_list = g_list_reverse(msg->data_list); |
162 else | 169 else |