ezmlmx 0.68
ezmlmx
Loading...
Searching...
No Matches
ezmlm-manage.c File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <unistd.h>
#include "error.h"
#include "stralloc.h"
#include "str.h"
#include "env.h"
#include "sig.h"
#include "readclose.h"
#include "getconf.h"
#include "byte.h"
#include "getln.h"
#include "case.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 "subscribe.h"
#include "cookie.h"
#include "getoptb.h"
#include "ezcopy.h"
#include "errtxt.h"
#include "open.h"
#include "lock.h"
#include "scan.h"
#include "mime.h"
#include "hdr.h"
#include "idx.h"
#include "auto_version.h"
#include "logmsg.h"
#include "lockfile.h"
#include "makehash.h"
#include "ezmlm.h"
Include dependency graph for ezmlm-manage.c:

Go to the source code of this file.

Macros

#define WHO   "ezmlm-manage"

Functions

void lock ()
void unlock ()
void make_verptarget ()
 puts target with '=' instead of last '@' into stralloc verptarget and does set_cpverptarget
void store_from (stralloc *frl, char *adr)
char * get_from (char *adr, char *act)
int hashok (char *action, char *ac)
ssize_t qqwrite (int fd, char *buf, unsigned int len)
int code_qput (char *s, unsigned int n)
int subto (char *s, unsigned int l)
int code_subto (char *s, unsigned int l)
int dummy_to (char *s, unsigned int l)
void to_owner ()
void mod_bottom ()
void msg_headers ()
 Writes all the headers up to but not including subject.
int geton (char *action)
int getoff (char *action)
void doconfirm (char *act)
void sendtomods ()
void copybottom ()
int main (int argc, char **argv)

Variables

int flagverbose = 0
int flagnotify = 1
int flagbottom = 1
int flaglist = 0
int flagget = 1
int flagsubconf = 1
int flagunsubconf = 1
int flagunsubismod = 0
int flagedit = 0
int flagstorefrom = 1
char flagcd = '\0'
char encin = '\0'
int flagdig = 0
char urlstr [] = "%00"
int act = AC_NONE
unsigned int actlen = 0
char * dir
char * workdir
char * sender
stralloc outhost = {0}
stralloc outlocal = {0}
stralloc key = {0}
stralloc mailinglist = {0}
stralloc mydtline = {0}
stralloc target = {0}
stralloc verptarget = {0}
stralloc confirm = {0}
stralloc line = {0}
stralloc qline = {0}
stralloc quoted = {0}
stralloc moddir = {0}
stralloc ddir = {0}
stralloc modsub = {0}
stralloc remote = {0}
stralloc from = {0}
stralloc to = {0}
stralloc owner = {0}
stralloc fromline = {0}
stralloc text = {0}
stralloc fnedit = {0}
stralloc fneditn = {0}
stralloc charset = {0}
datetime_sec when
int match
unsigned int max
char hash [COOKIE]
char hboundary [COOKIE]
datetime_sec hashdate
char inbuf [1024]
buffer bi = BUFFER_INIT(read,0,inbuf,(int) sizeof(inbuf))
buffer bj = BUFFER_INIT(read,0,inbuf,(int) sizeof(inbuf))
buffer bt
char textbuf [512]
buffer bf
char frombuf [512]
int fdlock
struct qmail qq
char qqbuf [1]
buffer bq = BUFFER_INIT(qqwrite,-1,qqbuf,(int) sizeof(qqbuf))

Detailed Description

Author
Bruce Guenter
Date
2005-04-07 16:53:44Z

Definition in file ezmlm-manage.c.

Macro Definition Documentation

◆ WHO

#define WHO   "ezmlm-manage"

Definition at line 40 of file ezmlm-manage.c.

Function Documentation

◆ code_qput()

int code_qput ( char * s,
unsigned int n )

Definition at line 296 of file ezmlm-manage.c.

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

◆ code_subto()

int code_subto ( char * s,
unsigned int l )

Definition at line 318 of file ezmlm-manage.c.

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

◆ copybottom()

void copybottom ( )

Definition at line 560 of file ezmlm-manage.c.

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

◆ doconfirm()

void doconfirm ( char * act)

Definition at line 524 of file ezmlm-manage.c.

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

◆ dummy_to()

int dummy_to ( char * s,
unsigned int l )

Definition at line 325 of file ezmlm-manage.c.

Here is the caller graph for this function:

◆ get_from()

char * get_from ( char * adr,
char * act )

Definition at line 221 of file ezmlm-manage.c.

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

◆ getoff()

int getoff ( char * action)

Definition at line 494 of file ezmlm-manage.c.

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

◆ geton()

int geton ( char * action)

Definition at line 441 of file ezmlm-manage.c.

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

◆ hashok()

int hashok ( char * action,
char * ac )

Definition at line 266 of file ezmlm-manage.c.

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

◆ lock()

void lock ( )

Definition at line 126 of file ezmlm-manage.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 594 of file ezmlm-manage.c.

Here is the call graph for this function:

◆ make_verptarget()

void make_verptarget ( )

puts target with '=' instead of last '@' into stralloc verptarget and does set_cpverptarget

Definition at line 135 of file ezmlm-manage.c.

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

◆ mod_bottom()

void mod_bottom ( )

Definition at line 339 of file ezmlm-manage.c.

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

◆ msg_headers()

void msg_headers ( )

Writes all the headers up to but not including subject.

Definition at line 358 of file ezmlm-manage.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 287 of file ezmlm-manage.c.

Here is the call graph for this function:

◆ sendtomods()

void sendtomods ( )

Definition at line 555 of file ezmlm-manage.c.

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

◆ store_from()

void store_from ( stralloc * frl,
char * adr )

Definition at line 157 of file ezmlm-manage.c.

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

◆ subto()

int subto ( char * s,
unsigned int l )

Definition at line 310 of file ezmlm-manage.c.

Here is the call graph for this function:

◆ to_owner()

void to_owner ( )

Definition at line 330 of file ezmlm-manage.c.

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

◆ unlock()

void unlock ( )

Definition at line 127 of file ezmlm-manage.c.

Here is the caller graph for this function:

Variable Documentation

◆ act

int act = AC_NONE

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

◆ actlen

unsigned int actlen = 0

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

◆ bf

buffer bf

Definition at line 121 of file ezmlm-manage.c.

◆ bi

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

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

◆ bj

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

Definition at line 116 of file ezmlm-manage.c.

◆ bq

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

Definition at line 294 of file ezmlm-manage.c.

◆ bt

buffer bt

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

◆ charset

stralloc charset = {0}

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

◆ confirm

stralloc confirm = {0}

Definition at line 88 of file ezmlm-manage.c.

◆ ddir

stralloc ddir = {0}

Definition at line 93 of file ezmlm-manage.c.

◆ dir

char* dir

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

◆ encin

char encin = '\0'

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

◆ fdlock

int fdlock

Definition at line 124 of file ezmlm-manage.c.

◆ flagbottom

int flagbottom = 1

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

◆ flagcd

char flagcd = '\0'

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

◆ flagdig

int flagdig = 0

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

◆ flagedit

int flagedit = 0

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

◆ flagget

int flagget = 1

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

◆ flaglist

int flaglist = 0

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

◆ flagnotify

int flagnotify = 1

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

◆ flagstorefrom

int flagstorefrom = 1

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

◆ flagsubconf

int flagsubconf = 1

Definition at line 56 of file ezmlm-manage.c.

◆ flagunsubconf

int flagunsubconf = 1

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

◆ flagunsubismod

int flagunsubismod = 0

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

◆ flagverbose

int flagverbose = 0

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

◆ fnedit

stralloc fnedit = {0}

Definition at line 101 of file ezmlm-manage.c.

◆ fneditn

stralloc fneditn = {0}

Definition at line 102 of file ezmlm-manage.c.

◆ from

stralloc from = {0}

Definition at line 96 of file ezmlm-manage.c.

◆ frombuf

char frombuf[512]

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

◆ fromline

stralloc fromline = {0}

Definition at line 99 of file ezmlm-manage.c.

◆ hash

char hash[COOKIE]

Definition at line 110 of file ezmlm-manage.c.

◆ hashdate

datetime_sec hashdate

Definition at line 112 of file ezmlm-manage.c.

◆ hboundary

char hboundary[COOKIE]

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

◆ inbuf

char inbuf[1024]

Definition at line 114 of file ezmlm-manage.c.

◆ key

stralloc key = {0}

Definition at line 83 of file ezmlm-manage.c.

◆ line

stralloc line = {0}

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

◆ mailinglist

stralloc mailinglist = {0}

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

◆ match

int match

Definition at line 106 of file ezmlm-manage.c.

◆ max

unsigned int max

Definition at line 107 of file ezmlm-manage.c.

◆ moddir

stralloc moddir = {0}

Definition at line 92 of file ezmlm-manage.c.

◆ modsub

stralloc modsub = {0}

Definition at line 94 of file ezmlm-manage.c.

◆ mydtline

stralloc mydtline = {0}

Definition at line 85 of file ezmlm-manage.c.

◆ outhost

stralloc outhost = {0}

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

◆ outlocal

stralloc outlocal = {0}

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

◆ owner

stralloc owner = {0}

Definition at line 98 of file ezmlm-manage.c.

◆ qline

stralloc qline = {0}

Definition at line 90 of file ezmlm-manage.c.

◆ qq

struct qmail qq

Definition at line 286 of file ezmlm-manage.c.

◆ qqbuf

char qqbuf[1]

Definition at line 293 of file ezmlm-manage.c.

◆ quoted

stralloc quoted = {0}

Definition at line 91 of file ezmlm-manage.c.

◆ remote

stralloc remote = {0}

Definition at line 95 of file ezmlm-manage.c.

◆ sender

char* sender

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

◆ target

stralloc target = {0}

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

◆ text

stralloc text = {0}

Definition at line 100 of file ezmlm-manage.c.

◆ textbuf

char textbuf[512]

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

◆ to

stralloc to = {0}

Definition at line 97 of file ezmlm-manage.c.

◆ urlstr

char urlstr[] = "%00"

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

◆ verptarget

stralloc verptarget = {0}

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

◆ when

Definition at line 105 of file ezmlm-manage.c.

◆ workdir

char* workdir

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