1 /* $Cambridge: exim/src/src/transports/appendfile.h,v 1.2 2005/01/04 10:00:45 ph10 Exp $ */
3 /*************************************************
4 * Exim - an Internet mail transport agent *
5 *************************************************/
7 /* Copyright (c) University of Cambridge 1995 - 2005 */
8 /* See the file NOTICE for conditions of use and distribution. */
10 /* Private structure for the private options. */
16 uschar *message_prefix;
17 uschar *message_suffix;
18 uschar *create_file_string;
20 uschar *quota_directory;
21 uschar *quota_filecount;
22 uschar *quota_size_regex;
23 uschar *quota_warn_threshold;
24 uschar *mailbox_size_string;
25 uschar *mailbox_filecount_string;
26 uschar *maildir_dir_regex;
28 uschar *mailstore_prefix;
29 uschar *mailstore_suffix;
31 uschar *escape_string;
33 int mailbox_size_value;
34 int mailbox_filecount_value;
36 int quota_filecount_value;
37 int quota_warn_threshold_value;
42 int lock_fcntl_timeout;
43 int lock_flock_timeout;
53 BOOL create_directory;
56 BOOL set_use_lockfile;
62 BOOL set_use_mbx_lock;
66 BOOL mode_fail_narrower;
68 BOOL maildir_use_size_file;
69 BOOL mailstore_format;
71 BOOL quota_warn_threshold_is_percent;
72 BOOL quota_is_inclusive;
73 } appendfile_transport_options_block;
75 /* Restricted creation options */
77 enum { create_anywhere, create_belowhome, create_inhome };
79 /* Data for reading the private options. */
81 extern optionlist appendfile_transport_options[];
82 extern int appendfile_transport_options_count;
84 /* Block containing default values. */
86 extern appendfile_transport_options_block appendfile_transport_option_defaults;
88 /* The main and init entry points for the transport */
90 extern BOOL appendfile_transport_entry(transport_instance *, address_item *);
91 extern void appendfile_transport_init(transport_instance *);
93 /* Function that is shared with tf_maildir.c */
95 extern int check_dir_size(uschar *, int *, const pcre *);
97 /* End of transports/appendfile.h */