diff src/masqmail.h @ 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 c678d0342451
children 5b621742b2e7
line wrap: on
line diff
--- a/src/masqmail.h	Wed Jun 30 15:45:34 2010 +0200
+++ b/src/masqmail.h	Thu Jul 01 13:08:53 2010 +0200
@@ -174,6 +174,10 @@
 
 	guint remote_port;
 
+	/* ANSI C defines unsigned long to be at least 32bit
+	   i.e. ca. 4GB max; that should be enough. */
+	gulong max_msg_size;
+
 	gboolean do_save_envelope_to;
 
 	gboolean defer_all;
@@ -332,6 +336,7 @@
 	AERR_SYNTAX,
 	AERR_NOSPOOL,
 	AERR_NORCPT,
+	AERR_SIZE,  /* max msg size exeeded (SMTP SIZE) */
 	AERR_UNKNOWN
 } accept_error;