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