1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261
|
/*
Config.h
*/
/*
WARNING: If you change any path, you will must
change accordly Makefile install section.
*/
#ifndef __CONFIG_H
#define __CONFIG_H
#define RELPREFIX ""
//#define RELPREFIX "2"
#define POSTMANNAME "postman"
#define INTERDAEMONNAME "interdaemon"
#define APPNAME POSTMANNAME""RELPREFIX
#define DAEMONNAME INTERDAEMONNAME""RELPREFIX
#define PROGNAME DAEMONNAME
//Web Directory for app icons, help and html pages.
// ----> BE SURE TO SET THIS LINE
#define HTDOCDIR "/u/www/htdocs/"APPNAME
#if defined (LINUX)
typedef unsigned char xuchar;
typedef unsigned int xuint;
typedef signed int xsint;
typedef unsigned long xulong;
#define cmdSORT "/usr/bin/sort"
#define PS "/bin/ps"
#define GREP "/bin/grep"
#define WC "/usr/bin/wc"
#elif defined (HP)
#define bool int
#define false 0
#define true 1
typedef int socklen_t;
typedef unsigned char xuchar;
typedef unsigned int xuint;
typedef int xsint;
typedef unsigned long xulong;
#define cmdSORT "/usr/bin/sort"
#define PS "/usr/bin/ps"
#define GREP "/usr/bin/grep"
#define WC "/usr/bin/wc"
#elif defined (SUN)
#define bool int
#define false 0
#define true 1
//typedef int socklen_t;
typedef unsigned char xuchar;
typedef unsigned int xuint;
typedef int xsint;
typedef unsigned long xulong;
#define cmdSORT "/bin/sort"
#define PS "/bin/ps"
#define GREP "/bin/grep"
#define WC "/usr/bin/wc"
#endif
//UNDEF or comment if your system have not that function.
#define HAVE_VSNPRINTF
#define PATH_CGI "/cgi-bin/"APPNAME
#define HOMEPAGE_SPA HTDOCDIR"/"APPNAME"_spa.html"
#define HOMEPAGE_VAL HTDOCDIR"/"APPNAME"_val.html"
#define HOMEPAGE_ENG HTDOCDIR"/"APPNAME"_eng.html"
#define HOMEPAGE_EUS HTDOCDIR"/"APPNAME"_eus.html"
#define APP_VERSION "2.1"
#define MAILCAP "/usr/local/etc/"APPNAME".mailcap"
#define FILE_FOR_NO_ACCEPT_NEW_CONNS "/usr/local/etc/"APPNAME".disabled"
#define SERVICE_DISABLED "/usr/local/etc/%s.disabled"
//WARNINGS: DO NO PUT SLASH AT THE END OF THE PATHS!
// DIRECTORIES MUST BE EXISTS!
#define BASEDIR "/var/"APPNAME
#define UNIX_SOCKETS_PATH BASEDIR"/server"
#define PIDDIR BASEDIR"/server"
#define NETNEWS_PATH BASEDIR"/netnews"
#define NN_DEFAULTGROUPS NETNEWS_PATH"/defaultgroups"
#define DATABASES_PATH BASEDIR"/databases"
#define SOCK_SESSIONS_PATH BASEDIR"/sessions"
#define LOCKSDIR BASEDIR"/locks"
#define TMP BASEDIR"/tmp"
#define UMASK 077
#define USERDIRMODE 0710
#define USERATTACHSDIRMODE 0770
#define CONVERTUSERNAMETOLOWERCASE 1
#define CALENDAR_PATH BASEDIR"/calendar"
#define USERCALENDARTEMPLATE "template_user.db"
#define CALENDAR_INSTITUTION "institution.db"
//IF YOU USE c-client RELEASE 4.7 OR LESS DEFINE THE NEXT LINE
//#define C_CLIENT_4_7
//1 Allow several connections from the same user using that program, 0 only one
#define ALLOW_SEVERAL_CONNS 0
//in seconds, read in lock file.
#define MAX_TIME_BETWEEN_CONNS 5
//in seconds
#define IMAP_TIMEOUT 60
//in bytes
#define SOCKETSIZE 4096
//Counter of the interdaemon child. Only is used when the signal RELOAD is sent to the parent process.
#define TMPSERVERCOUNT "/tmp/servercount"
#define CMDNUMCHILDS PS" -e | "GREP" interdaemon | "WC" -l > "TMPSERVERCOUNT
//***** DEFAULT OPTIONS ********************
#define DEFOPT_INSERTSIGNATUREINNEWMSG 0
//0 display all msgs in one page
#define DEFOPT_MSGSPERINDEXPAGE 10
#define DEFOPT_SAVEMSGSENTMAIL 1
#define DEFOPT_DISPLAYPERSONALINFO 1
#define DEFOPT_WIDTHWRITEAREA 72
#define DEFOPT_HEIGHTWRITEAREA 20
#define DEFOPT_TRUNCATELENGTHREADINGMSG 80
#define DEFOPT_REPLYFROM 0
#define DEFOPT_FORW_ATTACHS 1
#define DEFOPT_SENTMAILBOX "sent-mail"
#define MAXNUMATTACHSINSEND 30
#define DEFOPT_REFRESHTIME 0
#define DEFOPT_SHOWCLOCK 0
#define DEFOPT_CONFIRMPURGE 1
#define DEFOPT_CONFIRMLOGOUT 1
#define DEFOPT_SKIN "DEFAULT"
#define DEFOPT_NNTPSERVER "news"
#define DEFOPT_SHOWICONSLABELS 1
#define DEFOPT_ICONSSIZE 0
//(in bytes)
#define MAXTEXTSIZEATTACHFORDISPLAY 10000
//***** WWW ABSOLUTE DIRECTORIES ************************
#define PATH_IMAGENS "/"APPNAME"/icons"
//NNTP options
//Force include default nntp groups in all users.
#define FORCE_INCLUDE_NNTP_SUBSCRIBEDGROUPS 1
//Show a warning in COmpose Message page
#define SHOW_NNTP_SEND_WARNING 1
//In seconds. Max time to refresh the full nttp groups of one server.
#define MAX_TIME_NNFILE 86400
//MAX NNTP GROUPS FOUND
#define MAX_NNTP_GROUPS_FOUND 1000
//BEGIN FILTER FOR NNTP GROUP SEARCH
#define BEGIN_FILTER_NNTP_SEARCH "es.*"
//NNTP Group to enter (Valencia University specific setup)
#define DEFAULTBEGINNNTPGROUP "local.anuncios"
//Sort the NNTP All groups file when this is got (with system prog sort).
#define SORT_NNTP_ALLGROUPS 1
//***** MISC ********************************************
//Default mailbox to display when logging if cgi env var "beginmailbox" is not defined.
#define DEFAULTBEGINMAILBOX "INBOX"
//We do not allow html attachs parameters overwrite our html parameters.
// by example <HTML>,<BODY,</BODY></HTML>
#define DISABLE_ATT_HTML_TOKENS 1
//User can change the field "From:" composing a message.
#define USERCANCHANGEFROM 0
//for display the time (hh:ss) for msgs in the message index
#define DISPLAY_MSG_TIME_IN_INDEX 1
//for use arrival date or subject date
#define USE_ARRIVAL_DATE 1
//in seconds
#define DEFTIMEOUT 1200
#define DEFIMAPPORT 143
#define DEFNNTPPORT 119
#define DEFSMTPPORT 25
#define DEFSIEVEPORT 2000
#define DEFFORWARDPORT 106
#define DEFPOPPASSPORT 106
#define DEFLDAPPORT 389
#define USETIMEOUT 1
#define CONFIRM_DELETEMAILBOX 1
#define SIGNATURENAME ".signature"
#define SIEVENAME ".sieve"
#define USEROPTIONSNAME ".options"
#define USERADDRESSBOOKNAME ".addressbook"
#define USERCALENDAR ".calendar.db"
#define SUBSCRIBEDGROUPSNAME ".subscribedgroups"
#define RCGROUPSNAME ".newsrc"
#define DEFCOLOR_BGTABLE "#CCCCCC"
#define DEFCOLOR_BGTABLECOPYRIGHT "#CCCCCC"
#define DEFCOLOR_BGBOTONERACOLOR "#CCCCCC"
#define SAVEDINCOMPOSE ".savedmsg"
#define SAVEDNNTPINCOMPOSE ".savednntpmsg"
#define TABLEFACEFONT "Arial,PrimaSans BT,Verdana,sans-serif"
#define MAINSIZEFONT 2
#define STATUSFACEFONT "Arial,PrimaSans BT,Verdana,sans-serif"
#define MAINCOLORFONT "#000000"
#define LENGTHBOUNDARY 50
#define AVOID_IMAP_MSG_MAILBOXVULNERABLE
//in minutes
#define MIN_TIME_TO_REFRESH 1
#define XMAILER APPNAME" "APP_VERSION
//#define THECHARSET "US-ASCII"
#define THECHARSET "ISO-8859-1"
#define CUTINDICATOR "..."
#define CALCULATEMAILBOXSIZE 1
#define DISPLAYTXTATTASHTML 0
#define THREAD_MAXINDENTATION 5
#define THREAD_LENGTHINDENTATION 6
#define THREAD_INDENTATIONCHAR " "
//STATISTICAL OR ADMINISTRATIVE OPTIONS
//When a NNTP group is open, we write that in the syslog
#define LOG_OPEN_NEWSGROUPS 1
//We write in the syslog the browser of the client
#define LOG_BROWSER_CLIENT 1
//in bytes
#define MAXLENGTH_IN_REPLY 50000
#define MAXLENGTH_IN_SIGN 1000
#define MAXLENGTH_IN_SUBSCRIBEDGROUPS 500
#define MAXLENGTH_FIELD_AB 500
#define MAXLENGTH_TO 2000
#define MAXLENGTH_FROM 2000
#define MAXLONGATT 30000000
#define UNHANDLESIZEATTACH 50000000
#define REPLY_BEGIN_LINE "> "
//*************** LOG ****
#define XLOGFACILITY LOG_MAIL
#define XLOGOPTIONS LOG_PID
#define XLOGPRIORITY LOG_INFO
//**************** DISPLAY EN INDEX
//default for 640 wide screen
//#define LONGDISPLAYSUBJECT 35
//#define LONGDISPLAYFROM 20
//default for 800 wide screen
#define LONGDISPLAYSUBJECT 45
#define LONGDISPLAYFROM 30
//*************** OTHER PAGES
#define SERVER_IS_DISABLED "/"APPNAME"/disabled.html"
//Only for PROGRAMMER
#define SEPLINE_ENV_INPUT "SEPLINE_ENV_INPUT"
//Only for PROGRAMMER DEBUG
#define DEBUGGING_APP 0
#define SHOW_VALIDATE_HTML_URL 0
//FILEBROWSER module
// Max uploaded file in bytes
#define FILEBROWSER_MAXUPLOADFILE 50000000
#endif
|