ezmlmx 0.68
ezmlmx
Loading...
Searching...
No Matches
ezcopy.c File Reference

Copies a file relative the current directory and substitutes
!A at the beginning of a line for the target, !R at the beginning of a line for the confirm reply address, The following substitutions are also made. If not set, ?????
will be printed: <#l#> outlocal will be printed: <#h#> outhost will be printed: <#n#> outmsgnum. More...

#include <unistd.h>
#include "stralloc.h"
#include "buffer.h"
#include "str.h"
#include "getln.h"
#include "case.h"
#include "readwrite.h"
#include "qmail.h"
#include "logmsg.h"
#include "error.h"
#include "quote.h"
#include "ezcopy.h"
#include "mime.h"
#include "open.h"
#include "byte.h"
#include "idx.h"
#include "errtxt.h"
Include dependency graph for ezcopy.c:

Go to the source code of this file.

Macros

#define WHO   "ezcopy"

Functions

void set_cpoutlocal (const stralloc *ln)
void set_cpouthost (const stralloc *ln)
void set_cptarget (const char *tg)
void set_cpverptarget (const char *tg)
void set_cpconfirm (const char *cf)
void set_cpnum (const char *cf)
void ezcopy (struct qmail *qqp, const char *fn, char q)

Detailed Description

Copies a file relative the current directory and substitutes
!A at the beginning of a line for the target, !R at the beginning of a line for the confirm reply address, The following substitutions are also made. If not set, ?????
will be printed: <#l#> outlocal will be printed: <#h#> outhost will be printed: <#n#> outmsgnum.

Author
Bruce Guenter

Other tags are killed, e.g. removed. A missing file is a permanent error so owner finds out ASAP. May not have access to maillog. Content transfer encoding is done for 'B' and 'Q'. For 'H' no content transfer encoding is done, but blank lines are suppressed. Behavior for other codes is undefined. This includes lower case 'q'/'b'! If code is 'H' substitution of target and verptarget is prevented as it may create illegal headers.

Definition in file ezcopy.c.

Macro Definition Documentation

◆ WHO

#define WHO   "ezcopy"

Definition at line 19 of file ezcopy.c.

Function Documentation

◆ ezcopy()

void ezcopy ( struct qmail * qqp,
const char * fn,
char q )

Definition at line 128 of file ezcopy.c.

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

◆ set_cpconfirm()

void set_cpconfirm ( const char * cf)

Definition at line 89 of file ezcopy.c.

Here is the caller graph for this function:

◆ set_cpnum()

void set_cpnum ( const char * cf)

Definition at line 95 of file ezcopy.c.

Here is the caller graph for this function:

◆ set_cpouthost()

void set_cpouthost ( const stralloc * ln)

Definition at line 73 of file ezcopy.c.

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

◆ set_cpoutlocal()

void set_cpoutlocal ( const stralloc * ln)

Definition at line 67 of file ezcopy.c.

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

◆ set_cptarget()

void set_cptarget ( const char * tg)

Definition at line 79 of file ezcopy.c.

Here is the caller graph for this function:

◆ set_cpverptarget()

void set_cpverptarget ( const char * tg)

Definition at line 84 of file ezcopy.c.

Here is the caller graph for this function: