/*
* $Id$
*
- * main Citadel header file
- * see copyright.txt for copyright information
+ * Main Citadel header file
+ * See copyright.txt for copyright information.
*/
/* system customizations are in sysconfig.h */
/*
* Text description of this software
+ * (We used to define this ourselves, but why bother when
+ * the GNU build tools do it for us?)
*/
-#define CITADEL "Citadel 6.55"
+#define CITADEL PACKAGE_STRING
/*
* REV_LEVEL is the current version number (multiplied by 100 to avoid having
* usually more strict because you're not really supposed to dump/load and
* upgrade at the same time.
*/
-#define REV_LEVEL 655 /* This version */
+#define REV_LEVEL 725 /* This version */
#define REV_MIN 591 /* Oldest compatible database */
-#define EXPORT_REV_MIN 652 /* Oldest compatible export files */
+#define EXPORT_REV_MIN 725 /* Oldest compatible export files */
-#define SERVER_TYPE 0 /* zero for stock Citadel; other developers please
- obtain SERVER_TYPE codes for your implementations */
+#define SERVER_TYPE 0 /* zero for stock Citadel; other developers please
+ obtain SERVER_TYPE codes for your implementations */
/* Various length constants */
* Message expiration policy stuff
*/
struct ExpirePolicy {
+/*
+#include "datadefinitions.h"
+#include "dtds/expirepolicy-defs.h"
+#include "undef_data.h"
+*/
int expire_mode;
int expire_value;
};
* relevant rooms without having to ask the server each time where to go next.
*/
struct march {
+/*
+#include "datadefinitions.h"
+#include "dtds/march-defs.h"
+#include "undef_data.h"
+*/
struct march *next;
char march_name[ROOMNAMELEN];
unsigned int march_flags;
* User records.
*/
struct ctdluser { /* User record */
- int version; /* Cit vers. which created this rec */
- uid_t uid; /* Associate with a unix account? */
- char password[32]; /* password (for Citadel-only users)*/
- unsigned flags; /* See US_ flags below */
- long timescalled; /* Total number of logins */
- long posted; /* Number of messages posted (ever) */
- cit_uint8_t axlevel; /* Access level */
- long usernum; /* User number (never recycled) */
- time_t lastcall; /* Last time the user called */
- int USuserpurge; /* Purge time (in days) for user */
- char fullname[64]; /* Name for Citadel messages & mail */
- cit_uint8_t USscreenwidth; /* Screen width (for textmode users)*/
- cit_uint8_t USscreenheight; /* Screen height(for textmode users)*/
+/*
+#include "datadefinitions.h"
+#include "dtds/user-defs.h"
+#include "undef_data.h"
+*/
+ int version; /* Cit vers. which created this rec */
+ uid_t uid; /* Associate with a unix account? */
+ char password[32]; /* password */
+ unsigned flags; /* See US_ flags below */
+ long timescalled; /* Total number of logins */
+ long posted; /* Number of messages ever submitted */
+ cit_uint8_t axlevel; /* Access level */
+ long usernum; /* User number (never recycled) */
+ time_t lastcall; /* Date/time of most recent login */
+ int USuserpurge; /* Purge time (in days) for user */
+ char fullname[64]; /* Display name (primary identifier) */
+ cit_uint8_t USscreenwidth; /* Screen width (for textmode users) */
+ cit_uint8_t USscreenheight; /* Screen height(for textmode users) */
};
* Room records.
*/
struct ctdlroom {
- char QRname[ROOMNAMELEN]; /* Name of room */
- char QRpasswd[10]; /* Only valid if it's a private rm */
- long QRroomaide; /* User number of room aide */
- long QRhighest; /* Highest message NUMBER in room */
- time_t QRgen; /* Generation number of room */
- unsigned QRflags; /* See flag values below */
- char QRdirname[15]; /* Directory name, if applicable */
- long QRinfo; /* Info file update relative to msgs*/
- char QRfloor; /* Which floor this room is on */
- time_t QRmtime; /* Date/time of last post */
- struct ExpirePolicy QRep; /* Message expiration policy */
- long QRnumber; /* Globally unique room number */
- char QRorder; /* Sort key for room listing order */
- unsigned QRflags2; /* Additional flags */
- int QRdefaultview; /* How to display the contents */
+/*
+#include "datadefinitions.h"
+#include "dtds/room-defs.h"
+#include "undef_data.h"
+*/
+ char QRname[ROOMNAMELEN]; /* Name of room */
+ char QRpasswd[10]; /* Only valid if it's a private rm */
+ long QRroomaide; /* User number of room aide */
+ long QRhighest; /* Highest message NUMBER in room */
+ time_t QRgen; /* Generation number of room */
+ unsigned QRflags; /* See flag values below */
+ char QRdirname[15]; /* Directory name, if applicable */
+ long QRinfo; /* Info file update relative to msgs*/
+ char QRfloor; /* Which floor this room is on */
+ time_t QRmtime; /* Date/time of last post */
+ struct ExpirePolicy QRep; /* Message expiration policy */
+ long QRnumber; /* Globally unique room number */
+ char QRorder; /* Sort key for room listing order */
+ unsigned QRflags2; /* Additional flags */
+ int QRdefaultview; /* How to display the contents */
};
/* Private rooms are always flagged with QR_PRIVATE. If neither QR_PASSWORDED
* Floor record. The floor number is implicit in its location in the file.
*/
struct floor {
+/*
+#include "datadefinitions.h"
+#include "dtds/floor-defs.h"
+#include "undef_data.h"
+*/
unsigned short f_flags; /* flags */
char f_name[256]; /* name of floor */
int f_ref_count; /* reference count */
#define IGNETCFG "application/x-citadel-ignet-config"
#define IGNETMAP "application/x-citadel-ignet-map"
#define FILTERLIST "application/x-citadel-filter-list"
+#define SIEVECONFIG "application/x-citadel-sieve-config"
#define TRACE lprintf(CTDL_DEBUG, "Checkpoint: %s, %d\n", __FILE__, __LINE__)
#define LONG_MAX 2147483647L
#endif
-
/*
- * Views
+ * Authentication modes
*/
-#define VIEW_BBS 0 /* Bulletin board view */
-#define VIEW_MAILBOX 1 /* Mailbox summary */
-#define VIEW_ADDRESSBOOK 2 /* Address book view */
-#define VIEW_CALENDAR 3 /* Calendar view */
-#define VIEW_TASKS 4 /* Tasks view */
-#define VIEW_NOTES 5 /* Notes view */
+#define AUTHMODE_NATIVE 0 /* native Citadel authentication */
+#define AUTHMODE_HOST 1 /* host integrated */
#ifdef __cplusplus
}