X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fsysconfig.h;h=871fdd11bb505a8aa06f19709d6b360d7fef7a77;hb=2f84905fd53640a922efc4bf30618e96776d8b49;hp=7b749753a1766ce57762eca91ebe12d05b89a647;hpb=326128b8e98e473237ffe46c95aa5ae81896864b;p=citadel.git diff --git a/citadel/sysconfig.h b/citadel/sysconfig.h index 7b749753a..871fdd11b 100644 --- a/citadel/sysconfig.h +++ b/citadel/sysconfig.h @@ -1,72 +1,17 @@ -/****************************************************************************/ -/* 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! - */ - -/* - * If you want to keep a transcript of all multiuser chats that go across - * your system, define CHATLOG to the filename to be saved to. Otherwise, - * set CHATLOG to "/dev/null". - */ -#define CHATLOG "chat.log" - -/* - * SLEEPING refers to the watchdog timer. If a user sits idle without typing - * anything for this number of seconds, the session will automatically be - * logged out. Set it to zero to disable this feature. - * Note: the watchdog timer only functions when the parent is 1 (init) - in - * other words, only if Citadel is the login shell. - */ -#define SLEEPING 180 - -/* - * S_KEEPALIVE is also a watchdog timer, except 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 - - -/* - * Logging level to use if none is specified on the command line. - */ -#define DEFAULT_VERBOSITY 9 - - /* - * HOUSEKEEPING_WAKEUP is the number of seconds which pass between each pass - * of the housekeeping thread. This normally happens once per minute and there - * isn't any good reason to change it. + * Tuning of various parameters of the system. + * Normally you don't want to mess with any of this. + * + * Copyright (c) 1987-2018 by the citadel.org team + * + * This program is open source software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. */ -#define HOUSEKEEPING_WAKEUP 60 - /* * NLI is the string that shows up in a ho's online listing for sessions @@ -81,28 +26,73 @@ */ #define MAXFLOORS 16 +/* + * Standard buffer size for string datatypes. DO NOT CHANGE! Not only does + * there exist a minimum buffer size for certain protocols (such as IMAP), but + * fixed-length buffers are now stored in some of the data structures on disk, + * so if you change the buffer size you'll fux0r your database. + */ +#define SIZ 4096 -/* - * These define what port to listen on for various services. - * FIXME ... put this in a programmable config somewhere +/* + * If the body of a message is beyond this size, it will be stored in + * a separate table. */ -#define POP3_PORT 110 -#define SMTP_PORT 25 +#define BIGMSG 1024 /* - * SMTP delivery retry and give-up times - * FIXME ... put this in a programmable config somewhere + * SMTP delivery timeouts (measured in seconds) + * If outbound SMTP deliveries cannot be completed due to transient errors + * within SMTP_DELIVER_WARN seconds, the sender will receive a warning message + * indicating that the message has not yet been delivered but Citadel will + * keep trying. After SMTP_DELIVER_FAIL seconds, Citadel will advise the + * sender that the deliveries have failed. */ -#define SMTP_RETRY_INTERVAL 900 /* retry sends every 15 minutes */ -#define SMTP_GIVE_UP 259200 /* give up after 3 days */ +#define SMTP_DELIVER_WARN 14400 // warn after four hours +#define SMTP_DELIVER_FAIL 432000 // fail after five days +/* + * Who bounced messages appear to be from + */ +#define BOUNCESOURCE "Citadel Mail Delivery Subsystem" /* * The names of rooms which are automatically created by the system */ #define BASEROOM "Lobby" #define MAILROOM "Mail" +#define SENTITEMS "Sent Items" #define AIDEROOM "Aide" #define USERCONFIGROOM "My Citadel Config" +#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__" + +/* + * 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 */ + +/* + * 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