From 64a42f88618d2e1b7bea603edcb8091da2ba21df Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 15 Jun 2004 03:05:02 +0000 Subject: [PATCH] * Bumped internal version number to 6.22 * Added a new faster headers-only mode that excludes enumeration of MIME parts. --- citadel/ChangeLog | 6 ++++++ citadel/citadel.h | 4 ++-- citadel/msgbase.c | 1 + citadel/msgbase.h | 1 + citadel/techdoc/session.txt | 1 + 5 files changed, 11 insertions(+), 2 deletions(-) diff --git a/citadel/ChangeLog b/citadel/ChangeLog index edea2eb91..93a975b61 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,4 +1,9 @@ $Log$ + Revision 621.13 2004/06/15 03:05:01 ajc + * Bumped internal version number to 6.22 + * Added a new faster headers-only mode that excludes enumeration of + MIME parts. + Revision 621.12 2004/06/14 19:09:26 ajc * serv_vandelay.c: re-inserted a missing line of code for setting tempfile names, which was causing exports to crash. @@ -5838,3 +5843,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import + diff --git a/citadel/citadel.h b/citadel/citadel.h index 4d2466b70..3b8ccd7ac 100644 --- a/citadel/citadel.h +++ b/citadel/citadel.h @@ -32,7 +32,7 @@ extern "C" { /* * Text description of this software */ -#define CITADEL "Citadel/UX 6.21" +#define CITADEL "Citadel/UX 6.22" /* * REV_LEVEL is the current version number (multiplied by 100 to avoid having @@ -44,7 +44,7 @@ extern "C" { * usually more strict because you're not really supposed to dump/load and * upgrade at the same time. */ -#define REV_LEVEL 621 /* This version */ +#define REV_LEVEL 622 /* This version */ #define REV_MIN 591 /* Oldest compatible database */ #define EXPORT_REV_MIN 615 /* Oldest compatible export files */ diff --git a/citadel/msgbase.c b/citadel/msgbase.c index d0088482c..e1f3041cd 100644 --- a/citadel/msgbase.c +++ b/citadel/msgbase.c @@ -1343,6 +1343,7 @@ int CtdlOutputPreLoadedMsg(struct CtdlMessage *TheMessage, /* end header processing loop ... at this point, we're in the text */ START_TEXT: + if (headers_only == HEADERS_FAST) goto DONE; mptr = TheMessage->cm_fields['M']; /* Tell the client about the MIME parts in this message */ diff --git a/citadel/msgbase.h b/citadel/msgbase.h index cc3f3c96f..1d1874e45 100644 --- a/citadel/msgbase.h +++ b/citadel/msgbase.h @@ -35,6 +35,7 @@ enum { #define HEADERS_ALL 0 /* Headers and body */ #define HEADERS_ONLY 1 /* Headers only */ #define HEADERS_NONE 2 /* Body only */ +#define HEADERS_FAST 3 /* Headers only with no MIME info */ struct ma_info { diff --git a/citadel/techdoc/session.txt b/citadel/techdoc/session.txt index 8877b5162..14645e62b 100644 --- a/citadel/techdoc/session.txt +++ b/citadel/techdoc/session.txt @@ -525,6 +525,7 @@ argument specifies whether the client wants headers and/or message body: 0 = Headers and body 1 = Headers only 2 = Body only + 3 = Headers only, with MIME information suppressed (this runs faster) If the request is denied, ERROR + NOT_LOGGED_IN or ERROR + MESSAGE_NOT_FOUND will be returned. Otherwise, LISTING_FOLLOWS will be returned, followed by -- 2.30.2