s/qmail 4.2.29a
Next generation secure email transport
Loading...
Searching...
No Matches
Macros | Functions | Variables
qmail-local.c File Reference
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "sig.h"
#include "env.h"
#include "byte.h"
#include "exit.h"
#include "open.h"
#include "wait.h"
#include "lock.h"
#include "seek.h"
#include "buffer.h"
#include "getln.h"
#include "getoptb.h"
#include "alloc.h"
#include "logmsg.h"
#include "stralloc.h"
#include "fmt.h"
#include "str.h"
#include "now.h"
#include "case.h"
#include "quote.h"
#include "qmail.h"
#include "readclose.h"
#include "myctime.h"
#include "gfrom.h"
#include "auto_break.h"
#include "auto_patrn.h"
Include dependency graph for qmail-local.c:

Go to the source code of this file.

Macros

#define WHO   "qmail-local"
 

Functions

void usage ()
 
void temp_nomem ()
 
void temp_rewind ()
 
void temp_childcrashed ()
 
void temp_fork ()
 
void temp_read ()
 
void temp_slowlock ()
 
void temp_qmail (char *fn)
 
void tryunlinktmp ()
 
void sigalrm ()
 
void maildir_child (char *dir)
 
void maildir (char *fn)
 
void mailfile (char *fn)
 
void mailprogram (char *prog)
 
void mailforward (char **recips)
 
void bouncexf ()
 
void checkhome ()
 
int qmeox (char *dashowner)
 
int qmeexists (int *fd, int *cutable)
 
void qmesearch (int *fd, int *cutable)
 
void count_print ()
 
void sayit (char *type, char *cmd, int len)
 
int main (int argc, char **argv)
 

Variables

int flagdoit
 
int flag99
 
char * user
 
char * homedir
 
char * local
 
char * dash
 
char * ext
 
char * host
 
char * sender
 
char * aliasempty
 
stralloc safeext = {0}
 
stralloc ufline = {0}
 
stralloc rpline = {0}
 
stralloc envrecip = {0}
 
stralloc dtline = {0}
 
stralloc qme = {0}
 
stralloc ueo = {0}
 
stralloc cmds = {0}
 
stralloc messline = {0}
 
stralloc foo = {0}
 
stralloc hostname = {0}
 
char bufin [1024]
 
char bufout [1024]
 
char fntmptph [80+FMT_ULONG *2]
 
char fnnewtph [80+FMT_ULONG *2]
 
unsigned long mailforward_qp = 0
 
unsigned long count_file = 0
 
unsigned long count_forward = 0
 
unsigned long count_program = 0
 
char count_buf [FMT_ULONG]
 
char buflog [256]
 
buffer bl = BUFFER_INIT(write,1,buflog,sizeof(buflog))
 

Macro Definition Documentation

◆ WHO

#define WHO   "qmail-local"

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

Function Documentation

◆ bouncexf()

void bouncexf ( )

Definition at line 326 of file qmail-local.c.

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

◆ checkhome()

void checkhome ( )

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

Here is the caller graph for this function:

◆ count_print()

void count_print ( )

Definition at line 450 of file qmail-local.c.

Here is the caller graph for this function:

◆ maildir()

void maildir ( char *  fn)

Definition at line 176 of file qmail-local.c.

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

◆ maildir_child()

void maildir_child ( char *  dir)

Definition at line 87 of file qmail-local.c.

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

◆ mailfile()

void mailfile ( char *  fn)

Definition at line 204 of file qmail-local.c.

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

◆ mailforward()

void mailforward ( char **  recips)

Definition at line 300 of file qmail-local.c.

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

◆ mailprogram()

void mailprogram ( char *  prog)

Definition at line 264 of file qmail-local.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 475 of file qmail-local.c.

Here is the call graph for this function:

◆ qmeexists()

int qmeexists ( int fd,
int cutable 
)

Definition at line 377 of file qmail-local.c.

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

◆ qmeox()

int qmeox ( char *  dashowner)

Definition at line 360 of file qmail-local.c.

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

◆ qmesearch()

void qmesearch ( int fd,
int cutable 
)

Definition at line 410 of file qmail-local.c.

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

◆ sayit()

void sayit ( char *  type,
char *  cmd,
int  len 
)

Definition at line 468 of file qmail-local.c.

Here is the caller graph for this function:

◆ sigalrm()

void sigalrm ( )

Definition at line 85 of file qmail-local.c.

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

◆ temp_childcrashed()

void temp_childcrashed ( )

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

Here is the caller graph for this function:

◆ temp_fork()

void temp_fork ( )

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

Here is the caller graph for this function:

◆ temp_nomem()

void temp_nomem ( void  )

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

Here is the caller graph for this function:

◆ temp_qmail()

void temp_qmail ( char *  fn)

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

Here is the caller graph for this function:

◆ temp_read()

void temp_read ( )

Definition at line 47 of file qmail-local.c.

Here is the caller graph for this function:

◆ temp_rewind()

void temp_rewind ( )

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

Here is the caller graph for this function:

◆ temp_slowlock()

void temp_slowlock ( )

Definition at line 48 of file qmail-local.c.

Here is the caller graph for this function:

◆ tryunlinktmp()

void tryunlinktmp ( )

Definition at line 84 of file qmail-local.c.

Here is the caller graph for this function:

◆ usage()

void usage ( )

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

Here is the caller graph for this function:

Variable Documentation

◆ aliasempty

char* aliasempty

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

◆ bl

buffer bl = BUFFER_INIT(write,1,buflog,sizeof(buflog))

Definition at line 448 of file qmail-local.c.

◆ bufin

char bufin[1024]

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

◆ buflog

char buflog[256]

Definition at line 447 of file qmail-local.c.

◆ bufout

char bufout[1024]

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

◆ cmds

stralloc cmds = {0}

Definition at line 72 of file qmail-local.c.

◆ count_buf

char count_buf[FMT_ULONG]

Definition at line 446 of file qmail-local.c.

◆ count_file

unsigned long count_file = 0

Definition at line 443 of file qmail-local.c.

◆ count_forward

unsigned long count_forward = 0

Definition at line 444 of file qmail-local.c.

◆ count_program

unsigned long count_program = 0

Definition at line 445 of file qmail-local.c.

◆ dash

char* dash

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

◆ dtline

stralloc dtline = {0}

Definition at line 69 of file qmail-local.c.

◆ envrecip

stralloc envrecip = {0}

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

◆ ext

char* ext

Definition at line 60 of file qmail-local.c.

◆ flag99

int flag99

Definition at line 54 of file qmail-local.c.

◆ flagdoit

int flagdoit

Definition at line 53 of file qmail-local.c.

◆ fnnewtph

char fnnewtph[80+FMT_ULONG *2]

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

◆ fntmptph

char fntmptph[80+FMT_ULONG *2]

Definition at line 82 of file qmail-local.c.

◆ foo

stralloc foo = {0}

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

◆ homedir

char* homedir

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

◆ host

char* host

Definition at line 61 of file qmail-local.c.

◆ hostname

stralloc hostname = {0}

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

◆ local

char* local

Definition at line 58 of file qmail-local.c.

◆ mailforward_qp

unsigned long mailforward_qp = 0

Definition at line 298 of file qmail-local.c.

◆ messline

stralloc messline = {0}

Definition at line 73 of file qmail-local.c.

◆ qme

stralloc qme = {0}

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

◆ rpline

stralloc rpline = {0}

Definition at line 67 of file qmail-local.c.

◆ safeext

stralloc safeext = {0}

Definition at line 65 of file qmail-local.c.

◆ sender

char* sender

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

◆ ueo

stralloc ueo = {0}

Definition at line 71 of file qmail-local.c.

◆ ufline

stralloc ufline = {0}

Definition at line 66 of file qmail-local.c.

◆ user

char* user

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