From 361a01c1a231b02cf70c277f74709b6659b5be0d Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 16 Sep 2004 17:57:09 +0000 Subject: - Put in comments for adding options. --- common/smtppass.c | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'common/smtppass.c') 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 */ -/* TODO: Remove unneeded headers */ #include #include #include @@ -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 -- cgit v1.2.3