s/qmail 4.3.21
Next generation secure email transport
Loading...
Searching...
No Matches
qmail-todo.c File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include "alloc.h"
#include "auto_qmail.h"
#include "auto_queue.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 "qmail.h"
Include dependency graph for qmail-todo.c:

Go to the source code of this file.

Macros

#define CHANNELS   2
#define BUF_CHANNELS   1024

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 queuedir = {0}
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 [BUFSIZE_LINE]
buffer fromqc
char fromqcbuf [BUFSIZE_LINE]
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 [BUFSIZE_MESS]
char todobufinfo [BUFSIZE_OUT]
char todobufchan [CHANNELS][BUF_CHANNELS]
stralloc newlocals = {0}
stralloc newvdoms = {0}

Macro Definition Documentation

◆ BUF_CHANNELS

#define BUF_CHANNELS   1024

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

◆ CHANNELS

#define CHANNELS   2

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

Function Documentation

◆ cleandied()

void cleandied ( )

Definition at line 65 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 200 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 293 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 270 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 232 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 186 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 277 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 209 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 84 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 81 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 76 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 83 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 82 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 526 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 588 of file qmail-todo.c.

Here is the call graph for this function:

◆ regetcontrols()

void regetcontrols ( void )

Definition at line 548 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 573 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 94 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 63 of file qmail-todo.c.

Here is the caller graph for this function:

◆ sendlog1()

void sendlog1 ( char * x)

Definition at line 154 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 169 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 62 of file qmail-todo.c.

Here is the caller graph for this function:

◆ sigterm()

void sigterm ( void )

Definition at line 55 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 364 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 349 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 356 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 47 of file qmail-todo.c.

◆ comm_buf

stralloc comm_buf = {0}

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

◆ comm_pos

int comm_pos

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

◆ envnoathost

stralloc envnoathost = {0}

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

◆ fdin

int fdin = -1

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

◆ fdout

int fdout = -1

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

◆ flagquitasap

int flagquitasap = 0

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

◆ flagreadasap

int flagreadasap = 0

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

◆ flagsendalive

int flagsendalive = 1

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

◆ flagtododir

int flagtododir

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

◆ fn

stralloc fn = {0}

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

◆ fromqc

buffer fromqc

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

◆ fromqcbuf

char fromqcbuf[BUFSIZE_LINE]

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

◆ locals

stralloc locals = {0}

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

◆ maplocals

struct constmap maplocals

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

◆ mappercenthack

struct constmap mappercenthack

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

◆ mapvdoms

struct constmap mapvdoms

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

◆ newlocals

stralloc newlocals = {0}

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

◆ newvdoms

stralloc newvdoms = {0}

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

◆ nexttodorun

datetime_sec nexttodorun

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

◆ percenthack

stralloc percenthack = {0}

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

◆ queuedir

stralloc queuedir = {0}

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

◆ recent

datetime_sec recent

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

◆ rwline

stralloc rwline = {0}

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

◆ strnum

char strnum[FMT_ULONG]

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

◆ todobuf

char todobuf[BUFSIZE_MESS]

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

◆ todobufchan

char todobufchan[CHANNELS][BUF_CHANNELS]

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

◆ todobufinfo

char todobufinfo[BUFSIZE_OUT]

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

◆ todoline

stralloc todoline = {0}

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

◆ todosubdir

readsubdir todosubdir

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

◆ toqc

buffer toqc

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

◆ toqcbuf

char toqcbuf[BUFSIZE_LINE]

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

◆ vdoms

stralloc vdoms = {0}

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