s/qmail 4.2.29a
Next generation secure email transport
Loading...
Searching...
No Matches
Macros | Functions | Variables
qmail-todo.c File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "alloc.h"
#include "auto_qmail.h"
#include "byte.h"
#include "constmap.h"
#include "control.h"
#include "direntry.h"
#include "error.h"
#include "exit.h"
#include "fmt.h"
#include "fmtqfn.h"
#include "getln.h"
#include "open.h"
#include "ndelay.h"
#include "now.h"
#include "readsubdir.h"
#include "buffer.h"
#include "scan.h"
#include "select.h"
#include "str.h"
#include "sig.h"
#include "stralloc.h"
#include "trigger.h"
#include "qsutil.h"
#include "sendtodo.h"
Include dependency graph for qmail-todo.c:

Go to the source code of this file.

Macros

#define CHANNELS   2
 

Functions

void sendlog1 (char *x)
 
void sendlog3 (char *x, char *y, char *z)
 
void sigterm (void)
 
void sighup (void)
 
void senddied (void)
 
void cleandied ()
 
void fnmake_init (void)
 
void fnmake_info (unsigned long id)
 
void fnmake_todo (unsigned long id)
 
void fnmake_mess (unsigned long id)
 
void fnmake_chanaddr (unsigned long id, int c)
 
int rewrite (char *recip)
 
void comm_init (void)
 
int comm_canwrite (void)
 
void comm_write (unsigned long id, int local, int remote)
 
void comm_info (unsigned long id, unsigned long size, char *from, unsigned long pid, unsigned long uid)
 
void comm_exit (void)
 
void comm_selprep (int *nfds, fd_set *wfds, fd_set *rfds)
 
void comm_do (fd_set *wfds, fd_set *rfds)
 
void todo_init (void)
 
void todo_selprep (int *nfds, fd_set *rfds, datetime_sec *wakeup)
 
void todo_do (fd_set *rfds)
 
int getcontrols (void)
 
void regetcontrols (void)
 
void reread (void)
 
int main ()
 

Variables

stralloc percenthack = {0}
 
struct constmap mappercenthack
 
stralloc locals = {0}
 
struct constmap maplocals
 
stralloc vdoms = {0}
 
struct constmap mapvdoms
 
stralloc envnoathost = {0}
 
char strnum [FMT_ULONG]
 
char * chanaddr [CHANNELS] = { "local/", "remote/" }
 
datetime_sec recent
 
int flagquitasap = 0
 
int flagreadasap = 0
 
int flagsendalive = 1
 
stralloc fn = {0}
 
stralloc rwline = {0}
 
buffer toqc
 
char toqcbuf [1024]
 
buffer fromqc
 
char fromqcbuf [1024]
 
stralloc comm_buf = {0}
 
int comm_pos
 
int fdout = -1
 
int fdin = -1
 
datetime_sec nexttodorun
 
int flagtododir
 
readsubdir todosubdir
 
stralloc todoline = {0}
 
char todobuf [BUFFER_INSIZE]
 
char todobufinfo [512]
 
char todobufchan [CHANNELS][1024]
 
stralloc newlocals = {0}
 
stralloc newvdoms = {0}
 

Macro Definition Documentation

◆ CHANNELS

#define CHANNELS   2

Definition at line 40 of file qmail-todo.c.

Function Documentation

◆ cleandied()

void cleandied ( )

Definition at line 59 of file qmail-todo.c.

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

◆ comm_canwrite()

int comm_canwrite ( void  )

Definition at line 192 of file qmail-todo.c.

Here is the caller graph for this function:

◆ comm_do()

void comm_do ( fd_set *  wfds,
fd_set *  rfds 
)

Definition at line 285 of file qmail-todo.c.

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

◆ comm_exit()

void comm_exit ( void  )

Definition at line 262 of file qmail-todo.c.

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

◆ comm_info()

void comm_info ( unsigned long  id,
unsigned long  size,
char *  from,
unsigned long  pid,
unsigned long  uid 
)

Definition at line 224 of file qmail-todo.c.

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

◆ comm_init()

void comm_init ( void  )

Definition at line 178 of file qmail-todo.c.

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

◆ comm_selprep()

void comm_selprep ( int nfds,
fd_set *  wfds,
fd_set *  rfds 
)

Definition at line 269 of file qmail-todo.c.

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

◆ comm_write()

void comm_write ( unsigned long  id,
int  local,
int  remote 
)

Definition at line 201 of file qmail-todo.c.

Here is the caller graph for this function:

◆ fnmake_chanaddr()

void fnmake_chanaddr ( unsigned long  id,
int  c 
)

Definition at line 78 of file qmail-todo.c.

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

◆ fnmake_info()

void fnmake_info ( unsigned long  id)

Definition at line 75 of file qmail-todo.c.

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

◆ fnmake_init()

void fnmake_init ( void  )

Definition at line 70 of file qmail-todo.c.

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

◆ fnmake_mess()

void fnmake_mess ( unsigned long  id)

Definition at line 77 of file qmail-todo.c.

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

◆ fnmake_todo()

void fnmake_todo ( unsigned long  id)

Definition at line 76 of file qmail-todo.c.

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

◆ getcontrols()

int getcontrols ( void  )

Definition at line 515 of file qmail-todo.c.

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

◆ main()

int main ( void  )

Definition at line 575 of file qmail-todo.c.

Here is the call graph for this function:

◆ regetcontrols()

void regetcontrols ( void  )

Definition at line 537 of file qmail-todo.c.

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

◆ reread()

void reread ( void  )

Definition at line 561 of file qmail-todo.c.

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

◆ rewrite()

int rewrite ( char *  recip)

Definition at line 88 of file qmail-todo.c.

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

◆ senddied()

void senddied ( void  )

Definition at line 57 of file qmail-todo.c.

Here is the caller graph for this function:

◆ sendlog1()

void sendlog1 ( char *  x)

Definition at line 146 of file qmail-todo.c.

Here is the caller graph for this function:

◆ sendlog3()

void sendlog3 ( char *  x,
char *  y,
char *  z 
)

Definition at line 161 of file qmail-todo.c.

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

◆ sighup()

void sighup ( void  )

Definition at line 56 of file qmail-todo.c.

Here is the caller graph for this function:

◆ sigterm()

void sigterm ( void  )

Definition at line 49 of file qmail-todo.c.

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

◆ todo_do()

void todo_do ( fd_set *  rfds)

Definition at line 356 of file qmail-todo.c.

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

◆ todo_init()

void todo_init ( void  )

Definition at line 341 of file qmail-todo.c.

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

◆ todo_selprep()

void todo_selprep ( int nfds,
fd_set *  rfds,
datetime_sec wakeup 
)

Definition at line 348 of file qmail-todo.c.

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

Variable Documentation

◆ chanaddr

char* chanaddr[CHANNELS] = { "local/", "remote/" }

Definition at line 41 of file qmail-todo.c.

◆ comm_buf

stralloc comm_buf = {0}

Definition at line 141 of file qmail-todo.c.

◆ comm_pos

int comm_pos

Definition at line 142 of file qmail-todo.c.

◆ envnoathost

stralloc envnoathost = {0}

Definition at line 35 of file qmail-todo.c.

◆ fdin

int fdin = -1

Definition at line 144 of file qmail-todo.c.

◆ fdout

int fdout = -1

Definition at line 143 of file qmail-todo.c.

◆ flagquitasap

int flagquitasap = 0

Definition at line 44 of file qmail-todo.c.

◆ flagreadasap

int flagreadasap = 0

Definition at line 56 of file qmail-todo.c.

◆ flagsendalive

int flagsendalive = 1

Definition at line 57 of file qmail-todo.c.

◆ flagtododir

int flagtododir

Definition at line 334 of file qmail-todo.c.

◆ fn

stralloc fn = {0}

Definition at line 68 of file qmail-todo.c.

◆ fromqc

buffer fromqc

Definition at line 140 of file qmail-todo.c.

◆ fromqcbuf

char fromqcbuf[1024]

Definition at line 140 of file qmail-todo.c.

◆ locals

stralloc locals = {0}

Definition at line 31 of file qmail-todo.c.

◆ maplocals

struct constmap maplocals

Definition at line 32 of file qmail-todo.c.

◆ mappercenthack

struct constmap mappercenthack

Definition at line 30 of file qmail-todo.c.

◆ mapvdoms

struct constmap mapvdoms

Definition at line 34 of file qmail-todo.c.

◆ newlocals

stralloc newlocals = {0}

Definition at line 534 of file qmail-todo.c.

◆ newvdoms

stralloc newvdoms = {0}

Definition at line 535 of file qmail-todo.c.

◆ nexttodorun

datetime_sec nexttodorun

Definition at line 333 of file qmail-todo.c.

◆ percenthack

stralloc percenthack = {0}

Definition at line 29 of file qmail-todo.c.

◆ recent

datetime_sec recent

Definition at line 43 of file qmail-todo.c.

◆ rwline

stralloc rwline = {0}

Definition at line 83 of file qmail-todo.c.

◆ strnum

char strnum[FMT_ULONG]

Definition at line 37 of file qmail-todo.c.

◆ todobuf

char todobuf[BUFFER_INSIZE]

Definition at line 337 of file qmail-todo.c.

◆ todobufchan

char todobufchan[CHANNELS][1024]

Definition at line 339 of file qmail-todo.c.

◆ todobufinfo

char todobufinfo[512]

Definition at line 338 of file qmail-todo.c.

◆ todoline

stralloc todoline = {0}

Definition at line 336 of file qmail-todo.c.

◆ todosubdir

readsubdir todosubdir

Definition at line 335 of file qmail-todo.c.

◆ toqc

buffer toqc

Definition at line 139 of file qmail-todo.c.

◆ toqcbuf

char toqcbuf[1024]

Definition at line 139 of file qmail-todo.c.

◆ vdoms

stralloc vdoms = {0}

Definition at line 33 of file qmail-todo.c.