ezmlmx 0.68
ezmlmx
Loading...
Searching...
No Matches
ezmlm-moderate.c File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "error.h"
#include "case.h"
#include "stralloc.h"
#include "str.h"
#include "env.h"
#include "sig.h"
#include "wait.h"
#include "readclose.h"
#include "getconf.h"
#include "logmsg.h"
#include "byte.h"
#include "getln.h"
#include "qmail.h"
#include "buffer.h"
#include "readwrite.h"
#include "seek.h"
#include "quote.h"
#include "datetime.h"
#include "now.h"
#include "fmt.h"
#include "getoptb.h"
#include "cookie.h"
#include "errtxt.h"
#include "ezcopy.h"
#include "hdr.h"
#include "mime.h"
#include "open.h"
#include "lock.h"
#include "idx.h"
#include "wrap.h"
#include "auto_version.h"
#include "lockfile.h"
#include "ezmlm.h"
Include dependency graph for ezmlm-moderate.c:

Go to the source code of this file.

Macros

#define WHO   "ezmlm-moderate"

Functions

void code_qput (char *s, unsigned int n)
int checkfile (char *fn)
ssize_t qqwrite (int fd, char *buf, unsigned int len)
void maketo ()
 expects line to be a return-path line. If it is and the format is valid to is set to to the sender. Otherwise, to is left untouched. Assuming to is empty to start with, it will remain empty if no sender is found.
int main (int argc, char **argv)

Variables

int flagmime = MOD_MIME
char flagcd = '\0'
stralloc outhost = {0}
stralloc outlocal = {0}
stralloc key = {0}
stralloc mydtline = {0}
stralloc mailinglist = {0}
stralloc accept = {0}
stralloc reject = {0}
stralloc to = {0}
stralloc send = {0}
stralloc sendopt = {0}
stralloc comment = {0}
stralloc charset = {0}
datetime_sec when
char strnum [FMT_ULONG]
char hash [COOKIE]
char hboundary [COOKIE]
stralloc line = {0}
stralloc qline = {0}
stralloc text = {0}
stralloc quoted = {0}
stralloc fnbase = {0}
stralloc fnmsg = {0}
stralloc fnnew = {0}
stralloc fnsub = {0}
char subbuf [256]
buffer bs
char * dir
struct stat st
struct qmail qq
char qqbuf [1]
buffer bq = BUFFER_INIT(qqwrite,-1,qqbuf,sizeof(qqbuf))
buffer bt
char textbuf [1024]

Detailed Description

Author
Bruce Guenter
Date
2005-04-07 19:23:29Z

Definition in file ezmlm-moderate.c.

Macro Definition Documentation

◆ WHO

#define WHO   "ezmlm-moderate"

Definition at line 39 of file ezmlm-moderate.c.

Function Documentation

◆ checkfile()

int checkfile ( char * fn)

Definition at line 115 of file ezmlm-moderate.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ code_qput()

void code_qput ( char * s,
unsigned int n )

Definition at line 89 of file ezmlm-moderate.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int argc,
char ** argv )

Definition at line 182 of file ezmlm-moderate.c.

Here is the call graph for this function:

◆ maketo()

void maketo ( void )

expects line to be a return-path line. If it is and the format is valid to is set to to the sender. Otherwise, to is left untouched. Assuming to is empty to start with, it will remain empty if no sender is found.

Definition at line 166 of file ezmlm-moderate.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ qqwrite()

ssize_t qqwrite ( int fd,
char * buf,
unsigned int len )

Definition at line 146 of file ezmlm-moderate.c.

Here is the call graph for this function:

Variable Documentation

◆ accept

stralloc accept = {0}

Definition at line 60 of file ezmlm-moderate.c.

◆ bq

buffer bq = BUFFER_INIT(qqwrite,-1,qqbuf,sizeof(qqbuf))

Definition at line 152 of file ezmlm-moderate.c.

◆ bs

buffer bs

Definition at line 82 of file ezmlm-moderate.c.

◆ bt

buffer bt

Definition at line 154 of file ezmlm-moderate.c.

◆ charset

stralloc charset = {0}

Definition at line 66 of file ezmlm-moderate.c.

◆ comment

stralloc comment = {0}

Definition at line 65 of file ezmlm-moderate.c.

◆ dir

char* dir

Definition at line 84 of file ezmlm-moderate.c.

◆ flagcd

char flagcd = '\0'

Definition at line 48 of file ezmlm-moderate.c.

◆ flagmime

int flagmime = MOD_MIME

Definition at line 47 of file ezmlm-moderate.c.

◆ fnbase

stralloc fnbase = {0}

Definition at line 77 of file ezmlm-moderate.c.

◆ fnmsg

stralloc fnmsg = {0}

Definition at line 78 of file ezmlm-moderate.c.

◆ fnnew

stralloc fnnew = {0}

Definition at line 79 of file ezmlm-moderate.c.

◆ fnsub

stralloc fnsub = {0}

Definition at line 80 of file ezmlm-moderate.c.

◆ hash

char hash[COOKIE]

Definition at line 70 of file ezmlm-moderate.c.

◆ hboundary

char hboundary[COOKIE]

Definition at line 71 of file ezmlm-moderate.c.

◆ key

stralloc key = {0}

Definition at line 57 of file ezmlm-moderate.c.

◆ line

stralloc line = {0}

Definition at line 73 of file ezmlm-moderate.c.

◆ mailinglist

stralloc mailinglist = {0}

Definition at line 59 of file ezmlm-moderate.c.

◆ mydtline

stralloc mydtline = {0}

Definition at line 58 of file ezmlm-moderate.c.

◆ outhost

stralloc outhost = {0}

Definition at line 54 of file ezmlm-moderate.c.

◆ outlocal

stralloc outlocal = {0}

Definition at line 55 of file ezmlm-moderate.c.

◆ qline

stralloc qline = {0}

Definition at line 74 of file ezmlm-moderate.c.

◆ qq

struct qmail qq

Definition at line 87 of file ezmlm-moderate.c.

◆ qqbuf

char qqbuf[1]

Definition at line 151 of file ezmlm-moderate.c.

◆ quoted

stralloc quoted = {0}

Definition at line 76 of file ezmlm-moderate.c.

◆ reject

stralloc reject = {0}

Definition at line 61 of file ezmlm-moderate.c.

◆ send

stralloc send = {0}

Definition at line 63 of file ezmlm-moderate.c.

◆ sendopt

stralloc sendopt = {0}

Definition at line 64 of file ezmlm-moderate.c.

◆ st

struct stat st

Definition at line 86 of file ezmlm-moderate.c.

◆ strnum

char strnum[FMT_ULONG]

Definition at line 69 of file ezmlm-moderate.c.

◆ subbuf

char subbuf[256]

Definition at line 81 of file ezmlm-moderate.c.

◆ text

stralloc text = {0}

Definition at line 75 of file ezmlm-moderate.c.

◆ textbuf

char textbuf[1024]

Definition at line 155 of file ezmlm-moderate.c.

◆ to

stralloc to = {0}

Definition at line 62 of file ezmlm-moderate.c.

◆ when

Definition at line 67 of file ezmlm-moderate.c.