summaryrefslogtreecommitdiff
path: root/common/smtppass.h
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-10-12 16:26:19 +0000
committerStef Walter <stef@memberwebs.com>2004-10-12 16:26:19 +0000
commit2dbfaa260b81b4993010fdc545d563739435692c (patch)
tree0995eeb2c238ceba6882b38cf18f086ed7c596cc /common/smtppass.h
parent85b24ec5498b8024d90243168ecc8e479e8e0e50 (diff)
Don't send lines that are too long to syslog
Diffstat (limited to 'common/smtppass.h')
-rw-r--r--common/smtppass.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/common/smtppass.h b/common/smtppass.h
index e7fc780..34758ba 100644
--- a/common/smtppass.h
+++ b/common/smtppass.h
@@ -108,6 +108,10 @@ unsigned int spio_select(struct spctx* ctx, ...);
* SMTP PASS THROUGH FUNCTIONALITY
*/
+/* Log lines have to be under roughly 900 chars otherwise
+ * they get truncated by syslog. */
+#define SP_LOG_LINE_LEN 768
+
typedef struct spctx
{
unsigned int id; /* Identifier for the connection */
@@ -117,15 +121,12 @@ typedef struct spctx
FILE* cachefile; /* The file handle for the cached file */
char cachename[MAXPATHLEN]; /* The name of the file that we cache into */
- char logline[SP_LINE_LENGTH]; /* Log line */
+ char logline[SP_LOG_LINE_LEN]; /* Log line */
char* sender; /* The email of the sender */
char* recipients; /* The email of the recipients */
int _crlf; /* Private data */
- char _l1[SP_LINE_LENGTH];
- char _l2[SP_LINE_LENGTH];
- time_t _tm;
}
spctx_t;