*/
/* system customizations are in sysconfig.h */
+
+#ifndef CITADEL_H
+#define CITADEL_H
+
#include "sysdep.h"
#include "sysconfig.h"
#include "ipcdef.h"
struct ExpirePolicy {
int expire_mode;
int expire_value;
- };
+};
#define EXPIRE_NEXTLEVEL 0 /* Inherit expiration policy */
#define EXPIRE_MANUAL 1 /* Don't expire messages at all */
char c_moreprompt[80]; /* paginator prompt */
char c_restrict; /* restrict Internet mail flag */
long c_msgbase; /* size of message base */
- char c_bbs_city[32]; /* city and state you are located in*/
+ char c_bbs_city[32]; /* physical location of server */
char c_sysadm[26]; /* name of system administrator */
char c_bucket_dir[15]; /* bit bucket for files... */
int c_setup_level; /* what rev level we've setup to */
int c_maxsessions; /* maximum concurrent sessions */
char c_net_password[20]; /* system net password */
- int c_port_number; /* TCP port to run the server on */
+ int c_port_number; /* Cit listener port (usually 504) */
int c_ipgm_secret; /* Internal program authentication */
struct ExpirePolicy c_ep; /* System default msg expire policy */
int c_userpurge; /* System default user purge (days) */
int c_default_filter; /* Default moderation filter level */
int c_aide_zap; /* Are Aides allowed to zap rooms? */
int c_imap_port; /* IMAP listener port (usually 143) */
+ time_t c_net_freq; /* how often to run the networker */
};
#define NODENAME config.c_nodename
CIT_UBYTE USscreenwidth; /* Screen width (for textmode users)*/
CIT_UBYTE USscreenheight; /* Screen height(for textmode users)*/
char moderation_filter; /* Moderation filter level */
- };
+};
-/****************************************************************************
+/*
* This is the control record for the message base...
*/
struct CitControl {
long MMnextuser; /* highest user number on system */
long MMnextroom; /* highest room number on system */
int version; /* Server-hosted upgrade level */
- };
+};
/* Bits which may appear in CitControl.MMflags. Note that these don't
* necessarily pertain to the message base -- it's just a good place to
*/
#define MM_VALID 4 /* New users need validating */
-/****************************************************************************
+/*
* Room records
*/
struct quickroom {
struct ExpirePolicy QRep; /* Message expiration policy */
long QRnumber; /* Globally unique room number */
char QRorder; /* Sort key for room listing order */
- };
-
+};
/* Private rooms are always flagged with QR_PRIVATE. If neither QR_PASSWORDED
* or QR_GUESSNAME is set, then it is invitation-only. Passworded rooms are
#define MES_ERROR (-1) /* Can't send message due to bad address */
#define MES_LOCAL 0 /* Local message, do no network processing */
#define MES_INTERNET 1 /* Convert msg and send as Internet mail */
-#define MES_BINARY 2 /* Process recipient and send via Cit net */
+#define MES_IGNET 2 /* Process recipient and send via Cit net */
/****************************************************************************/
#define F_INUSE 1 /* floor is in use */
-/****************************************************************************
+/*
* Values used internally for function call returns, etc.
*/
#define SPOOLMIME "application/x-citadel-delivery-list"
#define INTERNETCFG "application/x-citadel-internet-config"
#define IGNETCFG "application/x-citadel-ignet-config"
+#define IGNETMAP "application/x-citadel-ignet-map"
+#define USETABLE "application/x-citadel-usetable"
#define TRACE lprintf(9, "Checkpoint: %s, %d\n", __FILE__, __LINE__)
#ifndef LONG_MAX
#define LONG_MAX 2147483647L
#endif
+
+#endif /* CITADEL_H */