summaryrefslogtreecommitdiff
path: root/common/smtppass.h
blob: 4931e5ebdc6d664cc8ec135901198f4af81a6d24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __CLAMSMTPD_H__
#define __CLAMSMTPD_H__

/* A generous maximum line length. */
#define LINE_LENGTH 2000

typedef struct clamsmtp_context
{
    unsigned int id;        /* Identifier for the connection */

    int client;             /* Connection to client */
    int server;             /* Connection to server */
    int clam;               /* Connection to clamd */

    char line[LINE_LENGTH]; /* Working buffer */
    int linelen;            /* Length of valid data in above */
}
clamsmtp_context_t;

extern int g_daemonized;              /* Currently running as a daemon */
extern int g_debuglevel;              /* what gets logged to console */
extern pthread_mutex_t g_mutex;       /* The main mutex */

#endif /* __CLAMSMTPD_H__ */