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