1# Global constants for Mailfromd.
2# Copyright (C) 2005-2021 Sergey Poznyakoff
3#
4# Mailfromd is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 3, or (at your option)
7# any later version.
8#
9# Mailfromd is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with Mailfromd.  If not, see <http://www.gnu.org/licenses/>.
16
17# Notes on format:
18# 1. Comments start with #.
19# 2. Comments and empty lines are ignored.
20# 3. A line starting with @ is reproduced verbatim in texinfo output
21#    and is suppressed in C output.
22# 4. A definition consists of at least two words: a keyword and its value.
23#    Definitions are converted to @set statements in texinfo output and
24#    to #define statements in C output.
25# 5. A value starting with @ is a reference to a C header file.  The definition
26#    of the keyword is then looked up in that file and is output only in
27#    texinfo format.
28# 6. Any part of a value can be enclosed in grave accents.  Such a part is
29#    executed as a shell command, and its output is pasted back to the
30#    resulting string.  If the command produces multiple lines, they are
31#    concatenated and separated by a single space character.
32
33@c DEFAULT_USER is set in configure.
34@set DEFAULT_USER mail
35
36@c See stack_size, stack_max_size in src/prog.c (in words)
37STACK_SIZE 4096
38STACK_INCR 4096
39
40GACOPYZ_TIMEOUT @gacopyz/gacopyz_priv.h
41GACOPYZ_WRITE_TIMEOUT   @gacopyz/gacopyz.h
42GACOPYZ_READ_TIMEOUT    @gacopyz/gacopyz.h
43GACOPYZ_EOM_TIMEOUT     @gacopyz/gacopyz.h
44GACOPYZ_CONNECT_TIMEOUT @gacopyz/gacopyz.h
45
46@c Number of built-in exceptions
47MAX_E_EXCEPTIONS `grep -c 'dclex e_' mflib/status.mf`
48
49@c See nstreams variable in src/builtin/io.bi
50MAX_IOSTREAMS 1024
51
52@c See nmboxes variable in src/builtin/mbox.bi
53MAX_MBOXES  64
54
55@c See nmsgs in src/builtin/msg.bi
56MAX_MSGS 1024
57
58@c See max_a and max_ptr in src/builtin/dns.bi
59MAX_DNS_A 64
60MAX_DNS_PTR 64
61@c See max_mx ibid. See also MAXMXCOUNT in lib/dns.h
62MAX_DNS_MX 32
63