1 /* $Cambridge: exim/src/exim_monitor/em_globals.c,v 1.14 2008/12/30 13:12:02 michael Exp $ */
3 /*************************************************
5 *************************************************/
7 /* Copyright (c) University of Cambridge 1995 - 2007 */
8 /* See the file NOTICE for conditions of use and distribution. */
13 /* This source module contains all the global variables used in
14 the exim monitor, including those that are used by the standard
15 Exim modules that are included in Eximon. For comments on their
16 usage, see em_hdr.h and globals.h. */
19 /* The first set are unique to Eximon */
22 XtAppContext X_appcon;
24 XtActionsRec actionTable[] = {
25 { "dialogAction", (XtActionProc)dialogAction}};
27 int actionTableSize = sizeof(actionTable)/sizeof(XtActionsRec);
29 XtTranslations queue_trans;
30 XtTranslations text_trans;
32 Widget dialog_ref_widget;
33 Widget toplevel_widget;
34 Widget log_widget = NULL;
36 Widget unhide_widget = NULL;
41 int action_output = FALSE;
42 int action_queue_update = TRUE;
43 uschar actioned_message[24];
44 uschar *action_required;
45 uschar *alternate_config = NULL;
47 #ifdef EXPERIMENTAL_BRIGHTMAIL
49 uschar *bmi_verdicts = NULL;
54 uschar *exim_path = US BIN_DIRECTORY "/exim"
55 "\0<---------------Space to patch exim_path->";
57 int eximon_initialized = FALSE;
59 int log_buffer_size = 10240;
60 BOOL log_datestamping = FALSE;
62 uschar *log_display_buffer;
63 uschar *log_file = NULL;
64 uschar log_file_open[256];
65 uschar *log_font = NULL;
67 long int log_position;
70 uschar *menu_event = US"Shift<Btn1Down>";
71 int menu_is_up = FALSE;
75 pipe_item *pipe_chain = NULL;
77 uschar *qualify_domain = NULL;
78 int queue_depth = 200;
79 uschar *queue_font = NULL;
80 int queue_max_addresses = 10;
81 skip_item *queue_skip = NULL;
82 uschar *queue_stripchart_name = NULL;
83 int queue_update = 60;
84 int queue_width = 600;
88 uschar *size_stripchart = NULL;
89 uschar *size_stripchart_name = NULL;
90 int spool_is_split = FALSE;
91 int start_small = FALSE;
92 int stripchart_height = 90;
93 int stripchart_number = 1;
94 pcre **stripchart_regex;
95 uschar **stripchart_title;
96 int *stripchart_total;
97 int stripchart_update = 60;
98 int stripchart_width = 80;
99 int stripchart_varstart = 1;
101 int text_depth = 200;
102 int tick_queue_accumulator = 999999;
104 uschar *window_title = US"exim monitor";
107 /***********************************************************/
108 /***********************************************************/
111 /* These ones are used by Exim modules included in Eximon. Not all are
112 actually relevant to the operation of Eximon. If SPOOL_DIRECTORY is not
113 defined (Exim was compiled with it unset), just define it empty. The script
114 that fires up the monitor fishes the value out by using -bP anyway. */
116 #ifndef SPOOL_DIRECTORY
117 #define SPOOL_DIRECTORY ""
120 tree_node *acl_var_c = NULL;
121 tree_node *acl_var_m = NULL;
122 uschar *active_hostname = NULL;
123 BOOL allow_unqualified_recipient = FALSE;
124 BOOL allow_unqualified_sender = FALSE;
125 uschar *authenticated_id = NULL;
126 uschar *authenticated_sender = NULL;
128 uschar *big_buffer = NULL;
129 int big_buffer_size = BIG_BUFFER_SIZE;
130 int body_linecount = 0;
131 int body_zerocount = 0;
133 BOOL deliver_firsttime = FALSE;
134 BOOL deliver_freeze = FALSE;
135 int deliver_frozen_at = 0;
136 BOOL deliver_manual_thaw = FALSE;
138 #ifdef EXPERIMENTAL_DOMAINKEYS
139 uschar *dk_signing_domain = NULL;
140 uschar *dk_signing_selector = NULL;
141 int dk_do_verify = 0;
144 #ifdef EXPERIMENTAL_DKIM
145 uschar *dkim_signing_domain = NULL;
146 uschar *dkim_signing_selector = NULL;
147 int dkim_do_verify = 0;
150 BOOL dont_deliver = FALSE;
152 #ifdef WITH_CONTENT_SCAN
153 int fake_response = OK;
156 header_line *header_last = NULL;
157 header_line *header_list = NULL;
159 BOOL host_lookup_deferred = FALSE;
160 BOOL host_lookup_failed = FALSE;
161 uschar *interface_address = NULL;
162 int interface_port = 0;
164 BOOL local_error_message = FALSE;
165 uschar *local_scan_data = NULL;
166 BOOL log_timezone = FALSE;
168 #ifdef WITH_CONTENT_SCAN
169 uschar *spam_bar = NULL;
170 uschar *spam_report = NULL;
171 uschar *spam_score = NULL;
172 uschar *spam_score_int = NULL;
175 int max_received_linelength= 0;
178 uschar *message_id_external;
179 uschar message_id_option[MESSAGE_ID_LENGTH + 3];
181 int message_linecount = 0;
182 int message_size = 0;
183 uschar message_subdir[2] = { 0, 0 };
185 gid_t originator_gid;
186 uschar *originator_login;
187 uid_t originator_uid;
189 uschar *primary_hostname = NULL;
191 int received_count = 0;
192 uschar *received_protocol = NULL;
193 int received_time = 0;
194 int recipients_count = 0;
195 recipient_item *recipients_list = NULL;
196 int recipients_list_max = 0;
197 int running_in_test_harness=FALSE;
199 uschar *sender_address = NULL;
200 uschar *sender_fullhost = NULL;
201 uschar *sender_helo_name = NULL;
202 uschar *sender_host_address = NULL;
203 uschar *sender_host_authenticated = NULL;
204 uschar *sender_host_name = NULL;
205 int sender_host_port = 0;
206 uschar *sender_ident = NULL;
207 BOOL sender_local = FALSE;
208 BOOL sender_set_untrusted = FALSE;
209 uschar *smtp_active_hostname = NULL;
211 BOOL split_spool_directory = FALSE;
212 uschar *spool_directory = US SPOOL_DIRECTORY;
213 int string_datestamp_offset=-1;
215 BOOL timestamps_utc = FALSE;
216 BOOL tls_certificate_verified = FALSE;
217 uschar *tls_cipher = NULL;
218 uschar *tls_peerdn = NULL;
220 tree_node *tree_duplicates = NULL;
221 tree_node *tree_nonrecipients = NULL;
222 tree_node *tree_unusable = NULL;
224 uschar *version_date = US"?";
225 uschar *version_string = US"?";
227 int warning_count = 0;
229 /* End of em_globals.c */