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