X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fsysconfig.h;h=f0c9bd2be6b9ad30db6f2fec6d34235710d55731;hb=42147eb1950e0c616b070a8676603b551b1d9c58;hp=611877f1f1bf815baea16f4946a2abddeeee8ac9;hpb=3d44485e8945ef9b355fc1a87e41fcbac7a6a27f;p=citadel.git diff --git a/citadel/sysconfig.h b/citadel/sysconfig.h index 611877f1f..f0c9bd2be 100644 --- a/citadel/sysconfig.h +++ b/citadel/sysconfig.h @@ -1,24 +1,7 @@ /* - * $Id$ - * - */ - -/****************************************************************************/ -/* YOUR SYSTEM CONFIGURATION */ -/* Set all the values in this file appropriately BEFORE compiling any of the*/ -/* C programs. If you are upgrading from an older version of Citadel/UX, it */ -/* is vitally important that the #defines which are labelled "structure size*/ -/* variables" are EXACTLY the same as they were in your old system, */ -/* otherwise your files will be munged beyond repair. */ -/****************************************************************************/ - -/* $Id$ */ - -/* NOTE THAT THIS FILE IS MUCH, MUCH SMALLER THAN IT USED TO BE. - * That's because the setup program now creates a citadel.config file with - * all of the settings that don't really need to be in a header file. - * You can now run setup whenever you want, and change lots of parameters - * without having to recompile the whole system! + * NOTE: this file is for client software tuning, not customization. For + * making changes to the behavior of the client, you want to edit citadel.rc, + * not this file. */ /* @@ -26,36 +9,13 @@ * your system, define CHATLOG to the filename to be saved to. Otherwise, * set CHATLOG to "/dev/null". */ -#define CHATLOG "chat.log" - -/* - * S_KEEPALIVE is a watchdog timer. It is used to send "keep - * alive" messages to the server to prevent the server from assuming the - * client is dead and terminating the session. 30 seconds is the recommended - * value; I can't think of any good reason to change it. - */ -#define S_KEEPALIVE 30 - -/* - * This is the command that gets executed when a user hits nter message: - * presses the nter message key. The possible values are: - * 46 - .nter message with ditor - * 4 - .nter essage - * 36 - .nter message with scii - * Normally, this value will be set to 4, to cause the nter message - * command to run Citadel's built-in editor. However, if you have an external - * editor installed, and you want to make it the default, set this to 46 - * to make it use your editor by default. - */ -#define DEFAULT_ENTRY 4 - +#define CHATLOG "/dev/null" /* * Logging level to use if none is specified on the command line. + * Note that this will suppress messages before they even get to syslog(). */ -#define DEFAULT_VERBOSITY 9 - - +#define DEFAULT_VERBOSITY 7 /* * NLI is the string that shows up in a ho's online listing for sessions @@ -78,6 +38,12 @@ */ #define SIZ 4096 +/* + * If the body of a message is beyond this size, it will be stored in + * a separate table. + */ +#define BIGMSG 1024 + /* * SMTP delivery retry rules (all values are in seconds) * @@ -87,14 +53,14 @@ * successful delivery has been accomplished after SMTP_GIVE_UP seconds, the * message will be returned to its sender. */ -#define SMTP_RETRY_INTERVAL 900 /* 15 minutes */ +#define SMTP_RETRY_INTERVAL 300 /* 5 minutes */ #define SMTP_RETRY_MAX 43200 /* 12 hours */ #define SMTP_GIVE_UP 432000 /* 5 days */ /* - * How often to run the networker + * Who bounced messages appear to be from */ -#define NETWORK_QUEUE_FREQUENCY 3600 /* Once per hour */ +#define BOUNCESOURCE "Citadel Mail Delivery Subsystem" /* * This variable defines the amount of network spool data that may be carried @@ -109,9 +75,41 @@ */ #define BASEROOM "Lobby" #define MAILROOM "Mail" +#define SENTITEMS "Sent Items" #define AIDEROOM "Aide" #define USERCONFIGROOM "My Citadel Config" -#define USERCALENDARROOM "My Calendar" +#define USERCALENDARROOM "Calendar" +#define USERTASKSROOM "Tasks" +#define USERCONTACTSROOM "Contacts" +#define USERNOTESROOM "Notes" +#define USERDRAFTROOM "Drafts" +#define USERTRASHROOM "Trash" #define PAGELOGROOM "Sent/Received Pages" #define SYSCONFIGROOM "Local System Configuration" #define SMTP_SPOOLOUT_ROOM "__CitadelSMTPspoolout__" +#define FNBL_QUEUE_ROOM "__CitadelFNBLqueue__" +#define PAGER_QUEUE_ROOM "__CitadelPagerQueue__" +/* + * Where we keep messages containing the vCards that source our directory. It + * makes no sense to change this, because you'd have to change it on every + * system on the network. That would be stupid. + */ +#define ADDRESS_BOOK_ROOM "Global Address Book" + +/* + * How long (in seconds) to retain message entries in the use table + */ +#define USETABLE_RETAIN 864000L /* 10 days */ +#define USETABLE_ANTIEXPIRE 345600l /* 4 days */ +#define USETABLE_ANTIEXPIRE_HIRES 86400l /* 1 day */ + +/* + * The size of per-thread stacks. If set too low, citserver will randomly crash. + */ +#define THREADSTACKSIZE 0x100000 + +/* + * How many messages may the full text indexer scan before flushing its + * tables to disk? + */ +#define FT_MAX_CACHE 2500