3 #ifndef _PIPE_COMMAND_H_INCLUDED_
4 #define _PIPE_COMMAND_H_INCLUDED_
10 /* deliver message to external command
12 /* #include <pipe_command.h>
25 #include <mail_copy.h>
31 #define PIPE_CMD_END 0 /* terminator */
32 #define PIPE_CMD_COMMAND 1 /* command is string */
33 #define PIPE_CMD_ARGV 2 /* command is array */
34 #define PIPE_CMD_COPY_FLAGS 3 /* mail_copy() flags */
35 #define PIPE_CMD_SENDER 4 /* mail_copy() sender */
36 #define PIPE_CMD_DELIVERED 5 /* mail_copy() recipient */
37 #define PIPE_CMD_UID 6 /* privileges */
38 #define PIPE_CMD_GID 7 /* privileges */
39 #define PIPE_CMD_TIME_LIMIT 8 /* time limit */
40 #define PIPE_CMD_ENV 9 /* extra environment */
41 #define PIPE_CMD_SHELL 10 /* alternative shell */
42 #define PIPE_CMD_EOL 11 /* record delimiter */
43 #define PIPE_CMD_EXPORT 12 /* exportable environment */
44 #define PIPE_CMD_ORIG_RCPT 13 /* mail_copy() original recipient */
45 #define PIPE_CMD_CWD 14 /* working directory */
46 #define PIPE_CMD_CHROOT 15 /* chroot() before exec() */
49 * Command completion status.
51 #define PIPE_STAT_OK 0 /* success */
52 #define PIPE_STAT_DEFER 1 /* try again */
53 #define PIPE_STAT_BOUNCE 2 /* failed */
54 #define PIPE_STAT_CORRUPT 3 /* corrupted file */
56 extern int pipe_command(VSTREAM
*, DSN_BUF
*,...);
61 /* The Secure Mailer license must be distributed with this software.
64 /* IBM T.J. Watson Research
66 /* Yorktown Heights, NY 10598, USA