1 /* $Cambridge: exim/src/exim_monitor/em_globals.c,v 1.1 2004/10/07 10:39:01 ph10 Exp $ */
3 /*************************************************
5 *************************************************/
7 /* Copyright (c) University of Cambridge 1995 - 2004 */
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;
49 uschar *exim_path = US BIN_DIRECTORY "/exim"
50 "\0<---------------Space to patch exim_path->";
52 int eximon_initialized = FALSE;
54 int log_buffer_size = 10240;
55 BOOL log_datestamping = FALSE;
57 uschar *log_display_buffer;
58 uschar *log_file = NULL;
59 uschar log_file_open[256];
60 uschar *log_font = NULL;
62 long int log_position;
65 uschar *menu_event = US"Shift<Btn1Down>";
66 int menu_is_up = FALSE;
70 pipe_item *pipe_chain = NULL;
72 uschar *qualify_domain = NULL;
73 int queue_depth = 200;
74 uschar *queue_font = NULL;
75 int queue_max_addresses = 10;
76 skip_item *queue_skip = NULL;
77 uschar *queue_stripchart_name = NULL;
78 int queue_update = 60;
79 int queue_width = 600;
83 uschar *size_stripchart = NULL;
84 uschar *size_stripchart_name = NULL;
85 int spool_is_split = FALSE;
86 int start_small = FALSE;
87 int stripchart_height = 90;
88 int stripchart_number = 1;
89 pcre **stripchart_regex;
90 uschar **stripchart_title;
91 int *stripchart_total;
92 int stripchart_update = 60;
93 int stripchart_width = 80;
94 int stripchart_varstart = 1;
97 int tick_queue_accumulator = 999999;
99 uschar *window_title = US"exim monitor";
102 /***********************************************************/
103 /***********************************************************/
106 /* These ones are used by Exim modules included in Eximon. Not all are
107 actually relevant to the operation of Eximon. If SPOOL_DIRECTORY is not
108 defined (Exim was compiled with it unset), just define it empty. The script
109 that fires up the monitor fishes the value out by using -bP anyway. */
111 #ifndef SPOOL_DIRECTORY
112 #define SPOOL_DIRECTORY ""
116 uschar *acl_var[ACL_C_MAX+ACL_M_MAX];
118 uschar *active_hostname = NULL;
119 BOOL allow_unqualified_recipient = FALSE;
120 BOOL allow_unqualified_sender = FALSE;
121 uschar *authenticated_id = NULL;
122 uschar *authenticated_sender = NULL;
124 uschar *big_buffer = NULL;
125 int big_buffer_size = BIG_BUFFER_SIZE;
126 int body_linecount = 0;
127 int body_zerocount = 0;
129 BOOL deliver_firsttime = FALSE;
130 BOOL deliver_freeze = FALSE;
131 int deliver_frozen_at = 0;
132 BOOL deliver_manual_thaw = FALSE;
133 BOOL dont_deliver = FALSE;
135 header_line *header_last = NULL;
136 header_line *header_list = NULL;
138 BOOL host_lookup_failed = FALSE;
139 uschar *interface_address = NULL;
140 int interface_port = 0;
142 BOOL local_error_message = FALSE;
143 uschar *local_scan_data = NULL;
144 BOOL log_timezone = FALSE;
147 uschar *message_id_external;
148 uschar message_id_option[MESSAGE_ID_LENGTH + 3];
150 int message_linecount = 0;
151 int message_size = 0;
152 uschar message_subdir[2] = { 0, 0 };
154 gid_t originator_gid;
155 uschar *originator_login;
156 uid_t originator_uid;
158 uschar *primary_hostname = NULL;
160 int received_count = 0;
161 uschar *received_protocol = NULL;
162 int received_time = 0;
163 int recipients_count = 0;
164 recipient_item *recipients_list = NULL;
165 int recipients_list_max = 0;
166 int running_in_test_harness=FALSE;
168 uschar *sender_address = NULL;
169 uschar *sender_fullhost = NULL;
170 uschar *sender_helo_name = NULL;
171 uschar *sender_host_address = NULL;
172 uschar *sender_host_authenticated = NULL;
173 uschar *sender_host_name = NULL;
174 int sender_host_port = 0;
175 uschar *sender_ident = NULL;
176 BOOL sender_local = FALSE;
177 BOOL sender_set_untrusted = FALSE;
179 BOOL split_spool_directory = FALSE;
180 uschar *spool_directory = US SPOOL_DIRECTORY;
181 int string_datestamp_offset=-1;
183 BOOL timestamps_utc = FALSE;
184 BOOL tls_certificate_verified = FALSE;
185 uschar *tls_cipher = NULL;
186 uschar *tls_peerdn = NULL;
188 tree_node *tree_duplicates = NULL;
189 tree_node *tree_nonrecipients = NULL;
190 tree_node *tree_unusable = NULL;
192 uschar *version_date = US"?";
193 uschar *version_string = US"?";
195 int warning_count = 0;
197 /* End of em_globals.c */