Merge branch 'patch-3' of https://github.com/bes-internal/exim into master_dmarc_doc
[users/heiko/exim.git] / src / src / routers / redirect.h
1 /*************************************************
2 *     Exim - an Internet mail transport agent    *
3 *************************************************/
4
5 /* Copyright (c) University of Cambridge 1995 - 2009 */
6 /* See the file NOTICE for conditions of use and distribution. */
7
8 /* Header for the redirect router */
9
10 /* Private structure for the private options. */
11
12 typedef struct {
13   transport_instance *directory_transport;
14   transport_instance *file_transport;
15   transport_instance *pipe_transport;
16   transport_instance *reply_transport;
17
18   uschar *data;
19   uschar *directory_transport_name;
20   uschar *file;
21   uschar *file_dir;
22   uschar *file_transport_name;
23   uschar *include_directory;
24   uschar *pipe_transport_name;
25   uschar *reply_transport_name;
26   uschar *sieve_subaddress;
27   uschar *sieve_useraddress;
28   uschar *sieve_vacation_directory;
29   uschar *sieve_enotify_mailto_owner;
30   uschar *syntax_errors_text;
31   uschar *syntax_errors_to;
32   uschar *qualify_domain;
33
34   uid_t  *owners;
35   gid_t  *owngroups;
36
37 #ifdef EXPERIMENTAL_SRS
38   uschar *srs;
39   uschar *srs_alias;
40   uschar *srs_condition;
41   uschar *srs_dbinsert;
42   uschar *srs_dbselect;
43 #endif
44
45   int   modemask;
46   int   bit_options;
47   BOOL  check_ancestor;
48   BOOL  check_group;
49   BOOL  check_owner;
50   BOOL  forbid_file;
51   BOOL  forbid_filter_reply;
52   BOOL  forbid_pipe;
53   BOOL  forbid_smtp_code;
54   BOOL  hide_child_in_errmsg;
55   BOOL  one_time;
56   BOOL  qualify_preserve_domain;
57   BOOL  skip_syntax_errors;
58 } redirect_router_options_block;
59
60 /* Data for reading the private options. */
61
62 extern optionlist redirect_router_options[];
63 extern int redirect_router_options_count;
64
65 /* Block containing default values. */
66
67 extern redirect_router_options_block redirect_router_option_defaults;
68
69 /* The main and initialization entry points for the router */
70
71 extern int redirect_router_entry(router_instance *, address_item *,
72   struct passwd *, int, address_item **, address_item **,
73   address_item **, address_item **);
74
75 extern void redirect_router_init(router_instance *);
76
77 /* End of routers/redirect.h */