* When sending mail, copy to the sender's "Sent Items>" room instead of to
[citadel.git] / citadel / sysconfig.h
1 /*
2  * $Id$
3  *
4  */
5
6 /****************************************************************************/
7 /*                  YOUR SYSTEM CONFIGURATION                               */
8 /* Set all the values in this file appropriately BEFORE compiling any of the*/
9 /* C programs. If you are upgrading from an older version of Citadel/UX, it */
10 /* is vitally important that the #defines which are labelled "structure size*/
11 /* variables" are EXACTLY the same as they were in your old system,         */
12 /* otherwise your files will be munged beyond repair.                       */
13 /****************************************************************************/
14
15 /* $Id$ */
16
17 /* NOTE THAT THIS FILE IS MUCH, MUCH SMALLER THAN IT USED TO BE.
18  * That's because the setup program now creates a citadel.config file with
19  * all of the settings that don't really need to be in a header file.
20  * You can now run setup whenever you want, and change lots of parameters
21  * without having to recompile the whole system!
22  */
23
24 /*
25  * If you want to keep a transcript of all multiuser chats that go across
26  * your system, define CHATLOG to the filename to be saved to.  Otherwise,
27  * set CHATLOG to "/dev/null".
28  */
29 #define CHATLOG         "chat.log"
30
31 /* 
32  * S_KEEPALIVE is a watchdog timer.  It is used to send "keep
33  * alive" messages to the server to prevent the server from assuming the
34  * client is dead and terminating the session.  30 seconds is the recommended
35  * value; I can't think of any good reason to change it.
36  */
37 #define S_KEEPALIVE     30
38
39 /*
40  * This is the command that gets executed when a user hits <E>nter message:
41  * presses the <E>nter message key.  The possible values are:
42  *   46 - .<E>nter message with <E>ditor
43  *   4  - .<E>nter <M>essage
44  *   36 - .<E>nter message with <A>scii
45  * Normally, this value will be set to 4, to cause the <E>nter message
46  * command to run Citadel's built-in editor.  However, if you have an external
47  * editor installed, and you want to make it the default, set this to 46
48  * to make it use your editor by default.
49  */
50 #define DEFAULT_ENTRY           4
51
52
53 /*
54  * Logging level to use if none is specified on the command line.
55  */
56 #define DEFAULT_VERBOSITY       9
57
58
59
60 /*
61  * NLI is the string that shows up in a <W>ho's online listing for sessions
62  * that are active, but for which no user has yet authenticated.
63  */
64 #define NLI     "(not logged in)"
65
66 /*
67  * Maximum number of floors on the system.
68  * WARNING!  *Never* change this value once your system is up; THINGS WILL DIE!
69  * Also, do not set it higher than 127.
70  */
71 #define MAXFLOORS       16
72
73 /*
74  * Standard buffer size for string datatypes.  DO NOT CHANGE!  Not only does
75  * there exist a minimum buffer size for certain protocols (such as IMAP), but
76  * fixed-length buffers are now stored in some of the data structures on disk,
77  * so if you change the buffer size you'll fux0r your database.
78  */
79 #define SIZ             4096
80
81 /*
82  * SMTP delivery retry rules (all values are in seconds)
83  *
84  * If delivery of a message via SMTP is unsuccessful, Citadel will try again
85  * after SMTP_RETRY_INTERVAL seconds.  This interval will double after each
86  * unsuccessful delivery, up to a maximum of SMTP_RETRY_MAX seconds.  If no
87  * successful delivery has been accomplished after SMTP_GIVE_UP seconds, the
88  * message will be returned to its sender.
89  */
90 #define SMTP_RETRY_INTERVAL     900     /* 15 minutes */
91 #define SMTP_RETRY_MAX          43200   /* 12 hours */
92 #define SMTP_GIVE_UP            432000  /* 5 days */
93
94 /*
95  * Who bounced messages appear to be from
96  */
97 #define BOUNCESOURCE            "Citadel Mail Delivery Subsystem"
98
99 /*
100  * This variable defines the amount of network spool data that may be carried
101  * in one server transfer command.  For some reason, some networks get hung
102  * up on larger packet sizes.  We don't know why.  In any case, never set the
103  * packet size higher than 4096 or your server sessions will crash.
104  */
105 #define IGNET_PACKET_SIZE       4000
106
107 /*
108  * The names of rooms which are automatically created by the system
109  */
110 #define BASEROOM                "Lobby"
111 #define MAILROOM                "Mail"
112 #define SENTITEMS               "Sent Items"
113 #define AIDEROOM                "Aide"
114 #define USERCONFIGROOM          "My Citadel Config"
115 #define USERCALENDARROOM        "My Calendar"
116 #define PAGELOGROOM             "Sent/Received Pages"
117 #define SYSCONFIGROOM           "Local System Configuration"
118 #define SMTP_SPOOLOUT_ROOM      "__CitadelSMTPspoolout__"
119
120 /*
121  * How long (in seconds) to retain message entries in the use table
122  */
123 #define USETABLE_RETAIN         604800L         /* 7 days */