ezmlmx 0.68
ezmlmx
Loading...
Searching...
No Matches
ezmlm-cron.c File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <pwd.h>
#include <unistd.h>
#include "stralloc.h"
#include "getoptb.h"
#include "buffer.h"
#include "error.h"
#include "str.h"
#include "fmt.h"
#include "wait.h"
#include "readwrite.h"
#include "sig.h"
#include "case.h"
#include "scan.h"
#include "open.h"
#include "lock.h"
#include "byte.h"
#include "getln.h"
#include "auto_qmail.h"
#include "auto_cron.h"
#include "auto_version.h"
#include "errtxt.h"
#include "idx.h"
#include "wrap.h"
#include "logmsg.h"
#include "lockfile.h"
Include dependency graph for ezmlm-cron.c:

Go to the source code of this file.

Macros

#define WHO   "ezmlm-cron"

Functions

void die_syntax ()
void die_argument ()
int isclean (char *addr, int flagaddr)
int main (int argc, char **argv)

Variables

unsigned long deltah = 24L
unsigned long hh = 4L
unsigned long mm = 12L
const char * dow = "*"
const char * qmail_inject = "/bin/qmail-inject "
char strnum [FMT_ULONG]
unsigned long uid
unsigned long euid
stralloc line = {0}
stralloc rp = {0}
stralloc addr = {0}
stralloc user = {0}
stralloc euser = {0}
stralloc dir = {0}
stralloc listaddr = {0}
struct passwd * ppasswd
int opt
int match
int hostmatch
int localmatch
unsigned long dh
unsigned long t
int founduser = 0
int listmatch = 0
int flagconfig = 0
int flagdelete = 0
int flaglist = 0
int flagdigit = 0
int flagours
int foundlocal
int foundmatch = 0
int nolists = 0
unsigned long maxlists
unsigned int pos
unsigned int pos2
unsigned int poslocal
unsigned int len
unsigned int lenhost
unsigned int lenlocal
unsigned int part0start
unsigned int part0len
int fdlock
int fdin
int fdout
char * local = (char *) 0
const char * host = (char *) 0
const char * code = (char *) 0
const char * cp
char inbuf [512]
buffer bi
char outbuf [512]
buffer bo

Macro Definition Documentation

◆ WHO

#define WHO   "ezmlm-cron"

Definition at line 29 of file ezmlm-cron.c.

Function Documentation

◆ die_argument()

void die_argument ( )

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

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

◆ die_syntax()

void die_syntax ( )

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

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

◆ isclean()

int isclean ( char * addr,
int flagaddr )

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

Here is the caller graph for this function:

◆ main()

int main ( int argc,
char ** argv )

Definition at line 129 of file ezmlm-cron.c.

Here is the call graph for this function:

Variable Documentation

◆ addr

stralloc addr = {0}

Definition at line 45 of file ezmlm-cron.c.

◆ bi

buffer bi

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

◆ bo

buffer bo

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

◆ code

const char* code = (char *) 0

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

◆ cp

const char* cp

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

◆ deltah

unsigned long deltah = 24L

Definition at line 35 of file ezmlm-cron.c.

◆ dh

unsigned long dh

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

◆ dir

stralloc dir = {0}

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

◆ dow

const char* dow = "*"

Definition at line 38 of file ezmlm-cron.c.

◆ euid

unsigned long euid

Definition at line 41 of file ezmlm-cron.c.

◆ euser

stralloc euser = {0}

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

◆ fdin

int fdin

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

◆ fdlock

int fdlock

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

◆ fdout

int fdout

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

◆ flagconfig

int flagconfig = 0

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

◆ flagdelete

int flagdelete = 0

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

◆ flagdigit

int flagdigit = 0

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

◆ flaglist

int flaglist = 0

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

◆ flagours

int flagours

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

◆ foundlocal

int foundlocal

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

◆ foundmatch

int foundmatch = 0

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

◆ founduser

int founduser = 0

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

◆ hh

unsigned long hh = 4L

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

◆ host

const char* host = (char *) 0

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

◆ hostmatch

int hostmatch

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

◆ inbuf

char inbuf[512]

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

◆ len

unsigned int len

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

◆ lenhost

unsigned int lenhost

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

◆ lenlocal

unsigned int lenlocal

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

◆ line

stralloc line = {0}

Definition at line 43 of file ezmlm-cron.c.

◆ listaddr

stralloc listaddr = {0}

Definition at line 49 of file ezmlm-cron.c.

◆ listmatch

int listmatch = 0

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

◆ local

char* local = (char *) 0

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

◆ localmatch

int localmatch

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

◆ match

int match

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

◆ maxlists

unsigned long maxlists

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

◆ mm

unsigned long mm = 12L

Definition at line 37 of file ezmlm-cron.c.

◆ nolists

int nolists = 0

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

◆ opt

int opt

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

◆ outbuf

char outbuf[512]

Definition at line 126 of file ezmlm-cron.c.

◆ part0len

unsigned int part0len

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

◆ part0start

unsigned int part0start

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

◆ pos

unsigned int pos

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

◆ pos2

unsigned int pos2

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

◆ poslocal

unsigned int poslocal

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

◆ ppasswd

struct passwd* ppasswd

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

◆ qmail_inject

const char* qmail_inject = "/bin/qmail-inject "

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

◆ rp

stralloc rp = {0}

Definition at line 44 of file ezmlm-cron.c.

◆ strnum

char strnum[FMT_ULONG]

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

◆ t

unsigned long t

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

◆ uid

unsigned long uid

Definition at line 41 of file ezmlm-cron.c.

◆ user

stralloc user = {0}

Definition at line 46 of file ezmlm-cron.c.