diff src/conf.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 315773f814f7
children cd59a5b4d3dd
line wrap: on
line diff
--- a/src/conf.c	Wed Jun 30 15:45:34 2010 +0200
+++ b/src/conf.c	Thu Jul 01 13:08:53 2010 +0200
@@ -431,6 +431,7 @@
 	conf.do_relay = TRUE;
 	conf.alias_local_cmp = strcmp;
 	conf.max_defer_time = 86400 * 4;  /* 4 days */
+	conf.max_msg_size = 100*1024*1024; /* in bytes (100MB are probably enough) */
 
 	if ((in = fopen(filename, "r")) == NULL) {
 		fprintf(stderr, "could not open config file %s: %s\n", filename, strerror(errno));
@@ -581,7 +582,11 @@
 				conf.max_defer_time = ival;
 		} else if (strcmp(lval, "log_user") == 0)
 			conf.log_user = g_strdup(rval);
-
+		else if(strcmp(lval, "max_msg_size") == 0) {
+			conf.max_msg_size = atol(rval);
+			DEBUG(6) fprintf(stderr,"rval=%s, conf.max_msg_size=%ld\n",
+			                 rval, conf.max_msg_size);
+		}
 		else
 			fprintf(stderr, "var '%s' not (yet) known, ignored\n", lval);
 	}