Mercurial > masqmail-0.2
comparison src/smtp_in.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 | dabd4e706b78 |
comparison
equal
deleted
inserted
replaced
119:1e2fd87d58ea | 120:cd59a5b4d3dd |
---|---|
199 | 199 |
200 case SMTP_MAIL_FROM: | 200 case SMTP_MAIL_FROM: |
201 if (get_size(buffer, &msize)) { | 201 if (get_size(buffer, &msize)) { |
202 DEBUG(5) debugf("smtp_in(): get_size: msize=%ld, conf.mms=%d\n", | 202 DEBUG(5) debugf("smtp_in(): get_size: msize=%ld, conf.mms=%d\n", |
203 msize, conf.max_msg_size); | 203 msize, conf.max_msg_size); |
204 if (msize > conf.max_msg_size) { | 204 if (conf.max_msg_size && (msize > conf.max_msg_size)) { |
205 smtp_printf(out, "552 Message size exceeds fixed limit.\r\n"); | 205 smtp_printf(out, "552 Message size exceeds fixed limit.\r\n"); |
206 break; | 206 break; |
207 } | 207 } |
208 } | 208 } |
209 | 209 |