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