(1) Added $host_lookup_deferred.
[exim.git] / src / exim_monitor / em_globals.c
CommitLineData
b08b24c8 1/* $Cambridge: exim/src/exim_monitor/em_globals.c,v 1.5 2005/01/25 14:16:33 ph10 Exp $ */
059ec3d9
PH
2
3/*************************************************
4* Exim Monitor *
5*************************************************/
6
c988f1f4 7/* Copyright (c) University of Cambridge 1995 - 2005 */
059ec3d9
PH
8/* See the file NOTICE for conditions of use and distribution. */
9
10
11#include "em_hdr.h"
12
13/* This source module contains all the global variables used in
14the exim monitor, including those that are used by the standard
15Exim modules that are included in Eximon. For comments on their
16usage, see em_hdr.h and globals.h. */
17
18
19/* The first set are unique to Eximon */
20
21Display *X_display;
22XtAppContext X_appcon;
23
24XtActionsRec actionTable[] = {
25 { "dialogAction", (XtActionProc)dialogAction}};
26
27int actionTableSize = sizeof(actionTable)/sizeof(XtActionsRec);
28
29XtTranslations queue_trans;
30XtTranslations text_trans;
31
32Widget dialog_ref_widget;
33Widget toplevel_widget;
34Widget log_widget = NULL;
35Widget queue_widget;
36Widget unhide_widget = NULL;
37
38
39FILE *LOG;
40
41int action_output = FALSE;
42int action_queue_update = TRUE;
43uschar actioned_message[24];
44uschar *action_required;
45uschar *alternate_config = NULL;
46
8523533c
TK
47#ifdef EXPERIMENTAL_BRIGHTMAIL
48int bmi_run = 0;
49uschar *bmi_verdicts = NULL;
50#endif
51
059ec3d9
PH
52int body_max = 20000;
53
54uschar *exim_path = US BIN_DIRECTORY "/exim"
55 "\0<---------------Space to patch exim_path->";
56
57int eximon_initialized = FALSE;
58
59int log_buffer_size = 10240;
60BOOL log_datestamping = FALSE;
61int log_depth = 150;
62uschar *log_display_buffer;
63uschar *log_file = NULL;
64uschar log_file_open[256];
65uschar *log_font = NULL;
66ino_t log_inode;
67long int log_position;
68int log_width = 600;
69
70uschar *menu_event = US"Shift<Btn1Down>";
71int menu_is_up = FALSE;
72int min_height = 162;
73int min_width = 103;
74
75pipe_item *pipe_chain = NULL;
76
77uschar *qualify_domain = NULL;
78int queue_depth = 200;
79uschar *queue_font = NULL;
80int queue_max_addresses = 10;
81skip_item *queue_skip = NULL;
82uschar *queue_stripchart_name = NULL;
83int queue_update = 60;
84int queue_width = 600;
85
86pcre *yyyymmdd_regex;
87
88uschar *size_stripchart = NULL;
89uschar *size_stripchart_name = NULL;
90int spool_is_split = FALSE;
91int start_small = FALSE;
92int stripchart_height = 90;
93int stripchart_number = 1;
94pcre **stripchart_regex;
95uschar **stripchart_title;
96int *stripchart_total;
97int stripchart_update = 60;
98int stripchart_width = 80;
99int stripchart_varstart = 1;
100
101int text_depth = 200;
102int tick_queue_accumulator = 999999;
103
104uschar *window_title = US"exim monitor";
105
106
107/***********************************************************/
108/***********************************************************/
109
110
111/* These ones are used by Exim modules included in Eximon. Not all are
112actually relevant to the operation of Eximon. If SPOOL_DIRECTORY is not
113defined (Exim was compiled with it unset), just define it empty. The script
114that fires up the monitor fishes the value out by using -bP anyway. */
115
116#ifndef SPOOL_DIRECTORY
117#define SPOOL_DIRECTORY ""
118#endif
119
120
121uschar *acl_var[ACL_C_MAX+ACL_M_MAX];
122
123uschar *active_hostname = NULL;
124BOOL allow_unqualified_recipient = FALSE;
125BOOL allow_unqualified_sender = FALSE;
126uschar *authenticated_id = NULL;
127uschar *authenticated_sender = NULL;
128
129uschar *big_buffer = NULL;
130int big_buffer_size = BIG_BUFFER_SIZE;
131int body_linecount = 0;
132int body_zerocount = 0;
133
134BOOL deliver_firsttime = FALSE;
135BOOL deliver_freeze = FALSE;
136int deliver_frozen_at = 0;
137BOOL deliver_manual_thaw = FALSE;
138BOOL dont_deliver = FALSE;
139
8523533c
TK
140#ifdef WITH_CONTENT_SCAN
141BOOL fake_reject = FALSE;
142#endif
143
059ec3d9
PH
144header_line *header_last = NULL;
145header_line *header_list = NULL;
146
b08b24c8 147BOOL host_lookup_deferred = FALSE;
059ec3d9
PH
148BOOL host_lookup_failed = FALSE;
149uschar *interface_address = NULL;
150int interface_port = 0;
151
152BOOL local_error_message = FALSE;
153uschar *local_scan_data = NULL;
154BOOL log_timezone = FALSE;
8523533c
TK
155
156#ifdef WITH_CONTENT_SCAN
157uschar *spam_score_int = NULL;
158#endif
159
059ec3d9
PH
160int message_age = 0;
161uschar *message_id;
162uschar *message_id_external;
163uschar message_id_option[MESSAGE_ID_LENGTH + 3];
164
165int message_linecount = 0;
166int message_size = 0;
167uschar message_subdir[2] = { 0, 0 };
168
169gid_t originator_gid;
170uschar *originator_login;
171uid_t originator_uid;
172
173uschar *primary_hostname = NULL;
174
175int received_count = 0;
176uschar *received_protocol = NULL;
177int received_time = 0;
178int recipients_count = 0;
179recipient_item *recipients_list = NULL;
180int recipients_list_max = 0;
181int running_in_test_harness=FALSE;
182
183uschar *sender_address = NULL;
184uschar *sender_fullhost = NULL;
185uschar *sender_helo_name = NULL;
186uschar *sender_host_address = NULL;
187uschar *sender_host_authenticated = NULL;
188uschar *sender_host_name = NULL;
189int sender_host_port = 0;
190uschar *sender_ident = NULL;
191BOOL sender_local = FALSE;
192BOOL sender_set_untrusted = FALSE;
1f5b4c3d 193uschar *smtp_active_hostname = NULL;
059ec3d9
PH
194
195BOOL split_spool_directory = FALSE;
196uschar *spool_directory = US SPOOL_DIRECTORY;
197int string_datestamp_offset=-1;
198
199BOOL timestamps_utc = FALSE;
200BOOL tls_certificate_verified = FALSE;
201uschar *tls_cipher = NULL;
202uschar *tls_peerdn = NULL;
203
204tree_node *tree_duplicates = NULL;
205tree_node *tree_nonrecipients = NULL;
206tree_node *tree_unusable = NULL;
207
208uschar *version_date = US"?";
209uschar *version_string = US"?";
210
211int warning_count = 0;
212
213/* End of em_globals.c */