summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-09-16 17:57:09 +0000
committerStef Walter <stef@memberwebs.com>2004-09-16 17:57:09 +0000
commit361a01c1a231b02cf70c277f74709b6659b5be0d (patch)
treeb6cc48f1032ec190c4fd1a21389628b00d253af6 /common
parent0dc7245bcee8971a5fc1a79c3b9c9781ca848198 (diff)
- Put in comments for adding options.
Diffstat (limited to 'common')
-rw-r--r--common/smtppass.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/common/smtppass.c b/common/smtppass.c
index 2e590f6..0038d9e 100644
--- a/common/smtppass.c
+++ b/common/smtppass.c
@@ -36,7 +36,6 @@
* Andreas Steinmetz <ast@domdv.de>
*/
-/* TODO: Remove unneeded headers */
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
@@ -119,6 +118,21 @@ spthread_t;
#define OK_RSP "250"
#define START_RSP "220"
+/* The set of delimiters that can be present between config and value */
+#define CFG_DELIMS ": \t"
+
+#define LINE_TOO_LONG(ctx) ((ctx)->linelen >= (SP_LINE_LENGTH - 2))
+
+/* -----------------------------------------------------------------------
+ * CONFIGURATION OPTIONS
+ *
+ * - Be sure that your configuration option needs to go into this
+ * file. More likely it'll go into clamsmtpd.c
+ * - When adding configuration options follow the instructions in
+ * clamsmtpd.c, except add option to spstate_t (above) and parse in
+ * sp_parse_option (below)
+ */
+
#define CFG_MAXTHREADS "MaxConnections"
#define CFG_TIMEOUT "TimeOut"
#define CFG_OUTADDR "OutAddress"
@@ -126,11 +140,6 @@ spthread_t;
#define CFG_TRANSPARENT "TransparentProxy"
#define CFG_DIRECTORY "TempDirectory"
-/* The set of delimiters that can be present between config and value */
-#define CFG_DELIMS ": \t"
-
-
-#define LINE_TOO_LONG(ctx) ((ctx)->linelen >= (SP_LINE_LENGTH - 2))
/* -----------------------------------------------------------------------
* DEFAULT SETTINGS