ezmlmx 0.68
ezmlmx
|
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"
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) |
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.
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.
void ezcopy | ( | struct qmail * | qqp, |
const char * | fn, | ||
char | q ) |
void set_cpconfirm | ( | const char * | cf | ) |
void set_cpnum | ( | const char * | cf | ) |
void set_cpouthost | ( | const stralloc * | ln | ) |
void set_cpoutlocal | ( | const stralloc * | ln | ) |
void set_cptarget | ( | const char * | tg | ) |