quickie header file change
[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  * If you want to keep a transcript of all multiuser chats that go across
18  * your system, define CHATLOG to the filename to be saved to.  Otherwise,
19  * set CHATLOG to "/dev/null".
20  */
21 #define CHATLOG         "/dev/null"
22
23 /*
24  * Logging level to use if none is specified on the command line.
25  * Note that this will suppress messages before they even get to syslog().
26  */
27 #define DEFAULT_VERBOSITY       7
28
29 /*
30  * NLI is the string that shows up in a <W>ho's online listing for sessions
31  * that are active, but for which no user has yet authenticated.
32  */
33 #define NLI     "(not logged in)"
34
35 /*
36  * Maximum number of floors on the system.
37  * WARNING!  *Never* change this value once your system is up; THINGS WILL DIE!
38  * Also, do not set it higher than 127.
39  */
40 #define MAXFLOORS       16
41
42 /*
43  * Standard buffer size for string datatypes.  DO NOT CHANGE!  Not only does
44  * there exist a minimum buffer size for certain protocols (such as IMAP), but
45  * fixed-length buffers are now stored in some of the data structures on disk,
46  * so if you change the buffer size you'll fux0r your database.
47  */
48 #define SIZ             4096
49
50 /*
51  * If the body of a message is beyond this size, it will be stored in
52  * a separate table.
53  */
54 #define BIGMSG          1024
55
56 /*
57  * SMTP delivery retry rules (all values are in seconds)
58  *
59  * If delivery of a message via SMTP is unsuccessful, Citadel will try again
60  * after SMTP_RETRY_INTERVAL seconds.  This interval will double after each
61  * unsuccessful delivery, up to a maximum of SMTP_RETRY_MAX seconds.  If no
62  * successful delivery has been accomplished after SMTP_GIVE_UP seconds, the
63  * message will be returned to its sender.
64  */
65 #define SMTP_RETRY_INTERVAL     300     /* 5 minutes */
66 #define SMTP_RETRY_MAX          43200   /* 12 hours */
67 #define SMTP_GIVE_UP            432000  /* 5 days */
68
69 /*
70  * Who bounced messages appear to be from
71  */
72 #define BOUNCESOURCE            "Citadel Mail Delivery Subsystem"
73
74 /*
75  * This variable defines the amount of network spool data that may be carried
76  * in one server transfer command.  For some reason, some networks get hung
77  * up on larger packet sizes.  We don't know why.  In any case, never set the
78  * packet size higher than 4096 or your server sessions will crash.
79  */
80 #define IGNET_PACKET_SIZE       4000
81
82 /*
83  * The names of rooms which are automatically created by the system
84  */
85 #define BASEROOM                "Lobby"
86 #define MAILROOM                "Mail"
87 #define SENTITEMS               "Sent Items"
88 #define AIDEROOM                "Aide"
89 #define USERCONFIGROOM          "My Citadel Config"
90 #define USERCALENDARROOM        "Calendar"
91 #define USERTASKSROOM           "Tasks"
92 #define USERCONTACTSROOM        "Contacts"
93 #define USERNOTESROOM           "Notes"
94 #define USERDRAFTROOM           "Drafts"
95 #define USERTRASHROOM           "Trash"
96 #define PAGELOGROOM             "Sent/Received Pages"
97 #define SYSCONFIGROOM           "Local System Configuration"
98 #define SMTP_SPOOLOUT_ROOM      "__CitadelSMTPspoolout__"
99 #define FNBL_QUEUE_ROOM         "__CitadelFNBLqueue__"
100 /*
101  * Where we keep messages containing the vCards that source our directory.  It
102  * makes no sense to change this, because you'd have to change it on every
103  * system on the network.  That would be stupid.
104  */
105 #define ADDRESS_BOOK_ROOM       "Global Address Book"
106
107 /*
108  * How long (in seconds) to retain message entries in the use table
109  */
110 #define USETABLE_RETAIN                 864000L         /* 10 days */
111 #define USETABLE_ANTIEXPIRE             345600L         /*  4 days */
112 #define USETABLE_ANTIEXPIRE_HIRES        86400L         /*  1 day */
113
114 /*
115  * The size of per-thread stacks.  If set too low, citserver will randomly crash.
116  */
117 #define THREADSTACKSIZE         0x100000
118
119 /*
120  * How many messages may the full text indexer scan before flushing its
121  * tables to disk?
122  */
123 #define FT_MAX_CACHE            2500