Deleted Added
full compact
mfdef.h (132943) mfdef.h (157001)
1/*
1/*
2 * Copyright (c) 1999-2004 Sendmail, Inc. and its suppliers.
2 * Copyright (c) 1999-2005 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 *
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
8 *
9 *
3 * All rights reserved.
4 *
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
8 *
9 *
10 * $Id: mfdef.h,v 8.21 2004/07/07 21:41:31 ca Exp $
10 * $Id: mfdef.h,v 8.22 2005/08/05 21:49:04 ca Exp $
11 */
12
13/*
14** mfdef.h -- Global definitions for mail filter and MTA.
15*/
16
17#ifndef _LIBMILTER_MFDEF_H
18# define _LIBMILTER_MFDEF_H 1

--- 37 unchanged lines hidden (view full) ---

56
57/* actions (replies) */
58# define SMFIR_ADDRCPT '+' /* add recipient */
59# define SMFIR_DELRCPT '-' /* remove recipient */
60# define SMFIR_ACCEPT 'a' /* accept */
61# define SMFIR_REPLBODY 'b' /* replace body (chunk) */
62# define SMFIR_CONTINUE 'c' /* continue */
63# define SMFIR_DISCARD 'd' /* discard */
11 */
12
13/*
14** mfdef.h -- Global definitions for mail filter and MTA.
15*/
16
17#ifndef _LIBMILTER_MFDEF_H
18# define _LIBMILTER_MFDEF_H 1

--- 37 unchanged lines hidden (view full) ---

56
57/* actions (replies) */
58# define SMFIR_ADDRCPT '+' /* add recipient */
59# define SMFIR_DELRCPT '-' /* remove recipient */
60# define SMFIR_ACCEPT 'a' /* accept */
61# define SMFIR_REPLBODY 'b' /* replace body (chunk) */
62# define SMFIR_CONTINUE 'c' /* continue */
63# define SMFIR_DISCARD 'd' /* discard */
64# define SMFIR_CONN_FAIL 'f' /* cause a connection failure */
64# define SMFIR_CHGHEADER 'm' /* change header */
65# define SMFIR_PROGRESS 'p' /* progress */
66# define SMFIR_REJECT 'r' /* reject */
67# define SMFIR_TEMPFAIL 't' /* tempfail */
68# define SMFIR_SHUTDOWN '4' /* 421: shutdown (internal to MTA) */
69# define SMFIR_ADDHEADER 'h' /* add header */
70# define SMFIR_INSHEADER 'i' /* insert header */
71# define SMFIR_REPLYCODE 'y' /* reply code etc */

--- 5 unchanged lines hidden (view full) ---

77# define SMFIP_NOMAIL 0x00000004L /* MTA should not send MAIL info */
78# define SMFIP_NORCPT 0x00000008L /* MTA should not send RCPT info */
79# define SMFIP_NOBODY 0x00000010L /* MTA should not send body */
80# define SMFIP_NOHDRS 0x00000020L /* MTA should not send headers */
81# define SMFIP_NOEOH 0x00000040L /* MTA should not send EOH */
82# if _FFR_MILTER_NOHDR_RESP
83# define SMFIP_NOHREPL 0x00000080L /* No reply for headers */
84# endif /* _FFR_MILTER_NOHDR_RESP */
65# define SMFIR_CHGHEADER 'm' /* change header */
66# define SMFIR_PROGRESS 'p' /* progress */
67# define SMFIR_REJECT 'r' /* reject */
68# define SMFIR_TEMPFAIL 't' /* tempfail */
69# define SMFIR_SHUTDOWN '4' /* 421: shutdown (internal to MTA) */
70# define SMFIR_ADDHEADER 'h' /* add header */
71# define SMFIR_INSHEADER 'i' /* insert header */
72# define SMFIR_REPLYCODE 'y' /* reply code etc */

--- 5 unchanged lines hidden (view full) ---

78# define SMFIP_NOMAIL 0x00000004L /* MTA should not send MAIL info */
79# define SMFIP_NORCPT 0x00000008L /* MTA should not send RCPT info */
80# define SMFIP_NOBODY 0x00000010L /* MTA should not send body */
81# define SMFIP_NOHDRS 0x00000020L /* MTA should not send headers */
82# define SMFIP_NOEOH 0x00000040L /* MTA should not send EOH */
83# if _FFR_MILTER_NOHDR_RESP
84# define SMFIP_NOHREPL 0x00000080L /* No reply for headers */
85# endif /* _FFR_MILTER_NOHDR_RESP */
86# define SMFIP_NOUNKNOWN 0x00000100L /* MTA should not send unknown command */
87# define SMFIP_NODATA 0x00000200L /* MTA should not send DATA */
85
86# define SMFI_V1_PROT 0x0000003FL /* The protocol of V1 filter */
87# define SMFI_V2_PROT 0x0000007FL /* The protocol of V2 filter */
88
89# define SMFI_V1_PROT 0x0000003FL /* The protocol of V1 filter */
90# define SMFI_V2_PROT 0x0000007FL /* The protocol of V2 filter */
91
92/* Note: the "current" version is now determined dynamically in milter.c */
88# if _FFR_MILTER_NOHDR_RESP
93# if _FFR_MILTER_NOHDR_RESP
89# define SMFI_CURR_PROT 0x000000FFL /* The current version */
94# define SMFI_CURR_PROT 0x000000FFL
90# else /* _FFR_MILTER_NOHDR_RESP */
95# else /* _FFR_MILTER_NOHDR_RESP */
91# define SMFI_CURR_PROT SMFI_V2_PROT /* The current version */
96# define SMFI_CURR_PROT SMFI_V2_PROT
92# endif /* _FFR_MILTER_NOHDR_RESP */
93
94#endif /* !_LIBMILTER_MFDEF_H */
97# endif /* _FFR_MILTER_NOHDR_RESP */
98
99#endif /* !_LIBMILTER_MFDEF_H */