Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / global / mail_copy.h
blob875be6fc3f61ecd29880033f35d2233b7fb39858
1 /* $NetBSD$ */
3 #ifndef _MAIL_COPY_H_INCLUDED_
4 #define _MAIL_COPY_H_INCLUDED_
6 /*++
7 /* NAME
8 /* mail_copy 3h
9 /* SUMMARY
10 /* copy message with extreme prejudice
11 /* SYNOPSIS
12 /* #include <mail_copy.h>
13 /* DESCRIPTION
14 /* .nf
17 * Utility library.
19 #include <vstream.h>
20 #include <vstring.h>
23 * Global library.
25 #include <dsn_buf.h>
28 * External interface.
30 extern int mail_copy(const char *, const char *, const char *,
31 VSTREAM *, VSTREAM *,
32 int, const char *, DSN_BUF *);
34 #define MAIL_COPY_QUOTE (1<<0) /* prepend > to From_ */
35 #define MAIL_COPY_TOFILE (1<<1) /* fsync, ftruncate() */
36 #define MAIL_COPY_FROM (1<<2) /* prepend From_ */
37 #define MAIL_COPY_DELIVERED (1<<3) /* prepend Delivered-To: */
38 #define MAIL_COPY_RETURN_PATH (1<<4) /* prepend Return-Path: */
39 #define MAIL_COPY_DOT (1<<5) /* escape dots - needed for bsmtp */
40 #define MAIL_COPY_BLANK (1<<6) /* append blank line */
41 #define MAIL_COPY_ORIG_RCPT (1<<7) /* prepend X-Original-To: */
42 #define MAIL_COPY_MBOX (MAIL_COPY_FROM | MAIL_COPY_QUOTE | \
43 MAIL_COPY_TOFILE | MAIL_COPY_DELIVERED | \
44 MAIL_COPY_RETURN_PATH | MAIL_COPY_BLANK | \
45 MAIL_COPY_ORIG_RCPT)
47 #define MAIL_COPY_NONE 0 /* all turned off */
49 #define MAIL_COPY_STAT_OK 0
50 #define MAIL_COPY_STAT_CORRUPT (1<<0)
51 #define MAIL_COPY_STAT_READ (1<<1)
52 #define MAIL_COPY_STAT_WRITE (1<<2)
54 /* LICENSE
55 /* .ad
56 /* .fi
57 /* The Secure Mailer license must be distributed with this software.
58 /* AUTHOR(S)
59 /* Wietse Venema
60 /* IBM T.J. Watson Research
61 /* P.O. Box 704
62 /* Yorktown Heights, NY 10598, USA
63 /*--*/
65 #endif