Index by UID
[citadel.git] / citadel / sysconfig.h
1 /*
2  * Tuning of various parameters of the system.
3  * Normally you don't want to mess with any of this.
4  *
5  * Copyright (c) 1987-2017 by the citadel.org team
6  *
7  * This program is open source software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 3.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  */
15
16 /*
17  * NLI is the string that shows up in a <W>ho's online listing for sessions
18  * that are active, but for which no user has yet authenticated.
19  */
20 #define NLI     "(not logged in)"
21
22 /*
23  * Maximum number of floors on the system.
24  * WARNING!  *Never* change this value once your system is up; THINGS WILL DIE!
25  * Also, do not set it higher than 127.
26  */
27 #define MAXFLOORS       16
28
29 /*
30  * Standard buffer size for string datatypes.  DO NOT CHANGE!  Not only does
31  * there exist a minimum buffer size for certain protocols (such as IMAP), but
32  * fixed-length buffers are now stored in some of the data structures on disk,
33  * so if you change the buffer size you'll fux0r your database.
34  */
35 #define SIZ             4096
36
37 /*
38  * If the body of a message is beyond this size, it will be stored in
39  * a separate table.
40  */
41 #define BIGMSG          1024
42
43 /*
44  * SMTP delivery timeouts (measured in seconds)
45  * If outbound SMTP deliveries cannot be completed due to transient errors
46  * within SMTP_DELIVER_WARN seconds, the sender will receive a warning message
47  * indicating that the message has not yet been delivered but Citadel will
48  * keep trying.  After SMTP_DELIVER_FAIL seconds, Citadel will advise the
49  * sender that the deliveries have failed.
50  */
51 #define SMTP_DELIVER_WARN       14400           // warn after four hours
52 #define SMTP_DELIVER_FAIL       432000          // fail after five days
53
54 /*
55  * Who bounced messages appear to be from
56  */
57 #define BOUNCESOURCE            "Citadel Mail Delivery Subsystem"
58
59 /*
60  * This variable defines the amount of network spool data that may be carried
61  * in one server transfer command.  For some reason, some networks get hung
62  * up on larger packet sizes.  We don't know why.  In any case, never set the
63  * packet size higher than 4096 or your server sessions will crash.
64  */
65 #define IGNET_PACKET_SIZE       4000
66
67 /*
68  * The names of rooms which are automatically created by the system
69  */
70 #define BASEROOM                "Lobby"
71 #define MAILROOM                "Mail"
72 #define SENTITEMS               "Sent Items"
73 #define AIDEROOM                "Aide"
74 #define USERCONFIGROOM          "My Citadel Config"
75 #define USERCALENDARROOM        "Calendar"
76 #define USERTASKSROOM           "Tasks"
77 #define USERCONTACTSROOM        "Contacts"
78 #define USERNOTESROOM           "Notes"
79 #define USERDRAFTROOM           "Drafts"
80 #define USERTRASHROOM           "Trash"
81 #define PAGELOGROOM             "Sent/Received Pages"
82 #define SYSCONFIGROOM           "Local System Configuration"
83 #define SMTP_SPOOLOUT_ROOM      "__CitadelSMTPspoolout__"
84
85 /*
86  * Where we keep messages containing the vCards that source our directory.  It
87  * makes no sense to change this, because you'd have to change it on every
88  * system on the network.  That would be stupid.
89  */
90 #define ADDRESS_BOOK_ROOM       "Global Address Book"
91
92 /*
93  * How long (in seconds) to retain message entries in the use table
94  */
95 #define USETABLE_RETAIN                 864000L         /* 10 days */
96
97 /*
98  * The size of per-thread stacks.  If set too low, citserver will randomly crash.
99  */
100 #define THREADSTACKSIZE         0x100000
101
102 /*
103  * How many messages may the full text indexer scan before flushing its
104  * tables to disk?
105  */
106 #define FT_MAX_CACHE            2500