1
#ifndef _MAIL_COPY_H_INCLUDED_
2
#define _MAIL_COPY_H_INCLUDED_
8
/* copy message with extreme prejudice
10
/* #include <mail_copy.h>
23
extern int mail_copy(const char *, const char *, const char *,
25
int, const char *, VSTRING *);
27
#define MAIL_COPY_QUOTE (1<<0) /* prepend > to From_ */
28
#define MAIL_COPY_TOFILE (1<<1) /* fsync, ftruncate() */
29
#define MAIL_COPY_FROM (1<<2) /* prepend From_ */
30
#define MAIL_COPY_DELIVERED (1<<3) /* prepend Delivered-To: */
31
#define MAIL_COPY_RETURN_PATH (1<<4) /* prepend Return-Path: */
32
#define MAIL_COPY_DOT (1<<5) /* escape dots - needed for bsmtp */
33
#define MAIL_COPY_BLANK (1<<6) /* append blank line */
34
#define MAIL_COPY_ORIG_RCPT (1<<7) /* prepend X-Original-To: */
35
#define MAIL_COPY_MBOX (MAIL_COPY_FROM | MAIL_COPY_QUOTE | \
36
MAIL_COPY_TOFILE | MAIL_COPY_DELIVERED | \
37
MAIL_COPY_RETURN_PATH | MAIL_COPY_BLANK | \
40
#define MAIL_COPY_NONE 0 /* all turned off */
42
#define MAIL_COPY_STAT_OK 0
43
#define MAIL_COPY_STAT_CORRUPT (1<<0)
44
#define MAIL_COPY_STAT_READ (1<<1)
45
#define MAIL_COPY_STAT_WRITE (1<<2)
50
/* The Secure Mailer license must be distributed with this software.
53
/* IBM T.J. Watson Research
55
/* Yorktown Heights, NY 10598, USA