|
ezmlmx 0.69
ezmlmx
|
#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"
Go to the source code of this file.
Macros | |
| #define | WHO "ezmlm-cron" |
Functions | |
| int | rename (const char *, const char *) |
| 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 |
| #define WHO "ezmlm-cron" |
Definition at line 29 of file ezmlm-cron.c.
| void die_argument | ( | ) |
Definition at line 86 of file ezmlm-cron.c.


| void die_syntax | ( | ) |
Definition at line 80 of file ezmlm-cron.c.


| int isclean | ( | char * | addr, |
| int | flagaddr ) |
| int main | ( | int | argc, |
| char ** | argv ) |
| int rename | ( | const char * | , |
| const char * | ) |

| stralloc addr = {0} |
Definition at line 47 of file ezmlm-cron.c.
| buffer bi |
Definition at line 127 of file ezmlm-cron.c.
| buffer bo |
Definition at line 129 of file ezmlm-cron.c.
| const char* code = (char *) 0 |
Definition at line 77 of file ezmlm-cron.c.
| const char* cp |
Definition at line 78 of file ezmlm-cron.c.
| unsigned long deltah = 24L |
Definition at line 37 of file ezmlm-cron.c.
| unsigned long dh |
Definition at line 58 of file ezmlm-cron.c.
| stralloc dir = {0} |
Definition at line 50 of file ezmlm-cron.c.
| const char* dow = "*" |
Definition at line 40 of file ezmlm-cron.c.
| unsigned long euid |
Definition at line 43 of file ezmlm-cron.c.
| stralloc euser = {0} |
Definition at line 49 of file ezmlm-cron.c.
| int fdin |
Definition at line 73 of file ezmlm-cron.c.
| int fdlock |
Definition at line 73 of file ezmlm-cron.c.
| int fdout |
Definition at line 73 of file ezmlm-cron.c.
| int flagconfig = 0 |
Definition at line 61 of file ezmlm-cron.c.
| int flagdelete = 0 |
Definition at line 62 of file ezmlm-cron.c.
| int flagdigit = 0 |
Definition at line 64 of file ezmlm-cron.c.
| int flaglist = 0 |
Definition at line 63 of file ezmlm-cron.c.
| int flagours |
Definition at line 65 of file ezmlm-cron.c.
| int foundlocal |
Definition at line 66 of file ezmlm-cron.c.
| int foundmatch = 0 |
Definition at line 67 of file ezmlm-cron.c.
| int founduser = 0 |
Definition at line 59 of file ezmlm-cron.c.
| unsigned long hh = 4L |
Definition at line 38 of file ezmlm-cron.c.
| const char* host = (char *) 0 |
Definition at line 76 of file ezmlm-cron.c.
| int hostmatch |
Definition at line 56 of file ezmlm-cron.c.
| char inbuf[512] |
Definition at line 126 of file ezmlm-cron.c.
| unsigned int len |
Definition at line 70 of file ezmlm-cron.c.
| unsigned int lenhost |
Definition at line 71 of file ezmlm-cron.c.
| unsigned int lenlocal |
Definition at line 71 of file ezmlm-cron.c.
| stralloc line = {0} |
Definition at line 45 of file ezmlm-cron.c.
| stralloc listaddr = {0} |
Definition at line 51 of file ezmlm-cron.c.
| int listmatch = 0 |
Definition at line 60 of file ezmlm-cron.c.
| char* local = (char *) 0 |
Definition at line 75 of file ezmlm-cron.c.
| int localmatch |
Definition at line 57 of file ezmlm-cron.c.
| int match |
Definition at line 55 of file ezmlm-cron.c.
| unsigned long maxlists |
Definition at line 69 of file ezmlm-cron.c.
| unsigned long mm = 12L |
Definition at line 39 of file ezmlm-cron.c.
| int nolists = 0 |
Definition at line 68 of file ezmlm-cron.c.
| int opt |
Definition at line 55 of file ezmlm-cron.c.
| char outbuf[512] |
Definition at line 128 of file ezmlm-cron.c.
| unsigned int part0len |
Definition at line 72 of file ezmlm-cron.c.
| unsigned int part0start |
Definition at line 72 of file ezmlm-cron.c.
| unsigned int pos |
Definition at line 70 of file ezmlm-cron.c.
| unsigned int pos2 |
Definition at line 70 of file ezmlm-cron.c.
| unsigned int poslocal |
Definition at line 70 of file ezmlm-cron.c.
| struct passwd* ppasswd |
Definition at line 53 of file ezmlm-cron.c.
| const char* qmail_inject = "/bin/qmail-inject " |
Definition at line 41 of file ezmlm-cron.c.
| stralloc rp = {0} |
Definition at line 46 of file ezmlm-cron.c.
| char strnum[FMT_ULONG] |
Definition at line 42 of file ezmlm-cron.c.
| unsigned long t |
Definition at line 58 of file ezmlm-cron.c.
| unsigned long uid |
Definition at line 43 of file ezmlm-cron.c.
| stralloc user = {0} |
Definition at line 48 of file ezmlm-cron.c.