This is an omnibus commit which moves the Citadel Server from crusty old GNU Autotool...
[citadel.git] / citadel / server / sysconfig.h
1 // Tuning of various parameters of the system.
2 // Normally you don't want to mess with any of this.
3 //
4 // Copyright (c) 1987-2021 by the citadel.org team
5 //
6 // This program is open source software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License version 3.
8 //
9 // This program 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 /*
15  * NLI is the string that shows up in a <W>ho's online listing for sessions
16  * that are active, but for which no user has yet authenticated.
17  */
18 #define NLI     "(not logged in)"
19
20 /*
21  * Maximum number of floors on the system.
22  * WARNING!  *Never* change this value once your system is up; THINGS WILL DIE!
23  * Also, do not set it higher than 127.
24  */
25 #define MAXFLOORS       16
26
27 /*
28  * Standard buffer size for string datatypes.  DO NOT CHANGE!  Not only does
29  * there exist a minimum buffer size for certain protocols (such as IMAP), but
30  * fixed-length buffers are now stored in some of the data structures on disk,
31  * so if you change the buffer size you'll fux0r your database.
32  */
33 #define SIZ             4096
34
35 /*
36  * If the body of a message is beyond this size, it will be stored in
37  * a separate table.
38  */
39 #define BIGMSG          1024
40
41 /*
42  * SMTP delivery timeouts (measured in seconds)
43  * If outbound SMTP deliveries cannot be completed due to transient errors
44  * within SMTP_DELIVER_WARN seconds, the sender will receive a warning message
45  * indicating that the message has not yet been delivered but Citadel will
46  * keep trying.  After SMTP_DELIVER_FAIL seconds, Citadel will advise the
47  * sender that the deliveries have failed.
48  */
49 #define SMTP_DELIVER_WARN       14400           // warn after four hours
50 #define SMTP_DELIVER_FAIL       432000          // fail after five days
51
52 /*
53  * Who bounced messages appear to be from
54  */
55 #define BOUNCESOURCE            "Citadel Mail Delivery Subsystem"
56
57 /*
58  * The names of rooms which are automatically created by the system
59  */
60 #define BASEROOM                "Lobby"
61 #define MAILROOM                "Mail"
62 #define SENTITEMS               "Sent Items"
63 #define AIDEROOM                "Aide"
64 #define USERCONFIGROOM          "My Citadel Config"
65 #define USERCALENDARROOM        "Calendar"
66 #define USERTASKSROOM           "Tasks"
67 #define USERCONTACTSROOM        "Contacts"
68 #define USERNOTESROOM           "Notes"
69 #define USERDRAFTROOM           "Drafts"
70 #define USERTRASHROOM           "Trash"
71 #define PAGELOGROOM             "Sent/Received Pages"
72 #define SYSCONFIGROOM           "Local System Configuration"
73 #define SMTP_SPOOLOUT_ROOM      "__CitadelSMTPspoolout__"
74 #define ADDRESS_BOOK_ROOM       "Global Address Book"
75
76 /*
77  * How long (in seconds) to retain message entries in the use table
78  */
79 #define USETABLE_RETAIN         864000L         /* 10 days */
80
81 /*
82  * The size of per-thread stacks.  If set too low, citserver will randomly crash.
83  */
84 #define THREADSTACKSIZE         0x100000
85
86 /*
87  * How many messages may the full text indexer scan before flushing its
88  * tables to disk?
89  */
90 #define FT_MAX_CACHE            25