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

Go to the source code of this file.

Macros

#define WHO   "ezmlm-request"
#define EZREQ_LISTS   13
#define EZREQ_WHICH   14
#define EZREQ_HELP   2
#define EZREQ_BAD   1

Functions

ssize_t qqwrite (int fd, char *buf, unsigned int len)
int code_qput (char *s, unsigned int n)
void checkarg (char *s)
void parseline (char *cp)
int main (int argc, char **argv)

Variables

char strnum [FMT_ULONG]
char * userlocal = (char *) 0
char * userhost = (char *) 0
char * listlocal = (char *) 0
char * listhost = (char *) 0
const char * cfname = (char *) 0
char * command = (char*)"help"
stralloc outhost = {0}
stralloc outlocal = {0}
stralloc line = {0}
stralloc qline = {0}
stralloc usr = {0}
stralloc lhost = {0}
stralloc subject = {0}
stralloc listname = {0}
stralloc hostname = {0}
stralloc headerremove = {0}
stralloc mailinglist = {0}
stralloc cmds = {0}
stralloc from = {0}
stralloc to = {0}
stralloc charset = {0}
stralloc quoted = {0}
char hboundary [COOKIE] = "zxcaeedrqcrtrvthbdty"
char flagcd = '\0'
struct constmap headerremovemap
struct constmap commandmap
int flaggotsub = 0
const char * cmdstring
const int cmdxlate [] = { 0,1,2,3,4,5,6,7,8,3,4,4,4,-13,-14,5,7,7,7,7,7,1,1 }
const int noargsxlate []
buffer bt
char textbuf [1024]
struct qmail qq
char qqbuf [1]
buffer bq = BUFFER_INIT(qqwrite,-1,qqbuf,(int) sizeof(qqbuf))
char inbuf [1024]
buffer bi = BUFFER_INIT(read,0,inbuf,(int) sizeof(inbuf))
buffer bj = BUFFER_INIT(read,0,inbuf,(int) sizeof(inbuf))
buffer bo
char outbuf [1]
stralloc mydtline = {0}

Detailed Description

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

Definition in file ezmlm-request.c.

Macro Definition Documentation

◆ EZREQ_BAD

#define EZREQ_BAD   1

Definition at line 120 of file ezmlm-request.c.

◆ EZREQ_HELP

#define EZREQ_HELP   2

Definition at line 119 of file ezmlm-request.c.

◆ EZREQ_LISTS

#define EZREQ_LISTS   13

Definition at line 117 of file ezmlm-request.c.

◆ EZREQ_WHICH

#define EZREQ_WHICH   14

Definition at line 118 of file ezmlm-request.c.

◆ WHO

#define WHO   "ezmlm-request"

Definition at line 36 of file ezmlm-request.c.

Function Documentation

◆ checkarg()

void checkarg ( char * s)

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

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

◆ code_qput()

int code_qput ( char * s,
unsigned int n )

Definition at line 145 of file ezmlm-request.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 297 of file ezmlm-request.c.

Here is the call graph for this function:

◆ parseline()

void parseline ( char * cp)

Definition at line 211 of file ezmlm-request.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 127 of file ezmlm-request.c.

Here is the call graph for this function:

Variable Documentation

◆ bi

buffer bi = BUFFER_INIT(read,0,inbuf,(int) sizeof(inbuf))

Definition at line 137 of file ezmlm-request.c.

◆ bj

buffer bj = BUFFER_INIT(read,0,inbuf,(int) sizeof(inbuf))

Definition at line 138 of file ezmlm-request.c.

◆ bo

buffer bo

Definition at line 140 of file ezmlm-request.c.

◆ bq

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

Definition at line 134 of file ezmlm-request.c.

◆ bt

buffer bt

Definition at line 122 of file ezmlm-request.c.

◆ cfname

const char* cfname = (char *) 0

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

◆ charset

stralloc charset = {0}

Definition at line 72 of file ezmlm-request.c.

◆ cmds

stralloc cmds = {0}

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

◆ cmdstring

const char* cmdstring
Initial value:
=
"system\\help\\"
"subscribe\\unsubscribe\\index\\"
"info\\list\\query\\"
"sub\\unsub\\remove\\signoff\\"
"lists\\which\\"
"ind\\rev\\review\\recipients\\"
"who\\showdist\\"
"put\\set"

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

◆ cmdxlate

const int cmdxlate[] = { 0,1,2,3,4,5,6,7,8,3,4,4,4,-13,-14,5,7,7,7,7,7,1,1 }

Definition at line 103 of file ezmlm-request.c.

◆ command

char* command = (char*)"help"

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

◆ commandmap

struct constmap commandmap

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

◆ flagcd

char flagcd = '\0'

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

◆ flaggotsub

int flaggotsub = 0

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

◆ from

stralloc from = {0}

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

◆ hboundary

char hboundary[COOKIE] = "zxcaeedrqcrtrvthbdty"

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

◆ headerremove

stralloc headerremove = {0}

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

◆ headerremovemap

struct constmap headerremovemap

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

◆ hostname

stralloc hostname = {0}

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

◆ inbuf

char inbuf[1024]

Definition at line 136 of file ezmlm-request.c.

◆ lhost

stralloc lhost = {0}

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

◆ line

stralloc line = {0}

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

◆ listhost

char* listhost = (char *) 0

Definition at line 53 of file ezmlm-request.c.

◆ listlocal

char* listlocal = (char *) 0

Definition at line 52 of file ezmlm-request.c.

◆ listname

stralloc listname = {0}

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

◆ mailinglist

stralloc mailinglist = {0}

Definition at line 68 of file ezmlm-request.c.

◆ mydtline

stralloc mydtline = {0}

Definition at line 143 of file ezmlm-request.c.

◆ noargsxlate

const int noargsxlate[]
Initial value:
= { 0,1,-2,3,4,5,-2,-13,-14,9,10,11,12,13,14,15,16,17,
18,19,20,21,22 }

Definition at line 111 of file ezmlm-request.c.

◆ outbuf

char outbuf[1]

Definition at line 141 of file ezmlm-request.c.

◆ outhost

stralloc outhost = {0}

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

◆ outlocal

stralloc outlocal = {0}

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

◆ qline

stralloc qline = {0}

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

◆ qq

struct qmail qq

Definition at line 125 of file ezmlm-request.c.

◆ qqbuf

char qqbuf[1]

Definition at line 133 of file ezmlm-request.c.

◆ quoted

stralloc quoted = {0}

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

◆ strnum

char strnum[FMT_ULONG]

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

◆ subject

stralloc subject = {0}

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

◆ textbuf

char textbuf[1024]

Definition at line 123 of file ezmlm-request.c.

◆ to

stralloc to = {0}

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

◆ userhost

char* userhost = (char *) 0

Definition at line 51 of file ezmlm-request.c.

◆ userlocal

char* userlocal = (char *) 0

Definition at line 50 of file ezmlm-request.c.

◆ usr

stralloc usr = {0}

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