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
commit216e32d823baa33dd3e302201197860db52ce7a4 (patch)
tree4446c87e32f3d8a79f8ddf25de63884127a1ba10 /common
parentd1c03dbd583bbd0d3ab3c5c9ac47632325b5b690 (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