From: Art Cancro Date: Wed, 30 Dec 2009 18:10:05 +0000 (+0000) Subject: * Added a new 'MSGS LT' subcommand X-Git-Tag: v7.86~547 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=c73d2ab04533468048b4cd6eacaca574151a9706 * Added a new 'MSGS LT' subcommand * Version number to 7.80 --- diff --git a/citadel/citadel.h b/citadel/citadel.h index ff484f3b9..93ff39a48 100644 --- a/citadel/citadel.h +++ b/citadel/citadel.h @@ -54,7 +54,7 @@ extern "C" { * usually more strict because you're not really supposed to dump/load and * upgrade at the same time. */ -#define REV_LEVEL 770 /* This version */ +#define REV_LEVEL 780 /* This version */ #define REV_MIN 591 /* Oldest compatible database */ #define EXPORT_REV_MIN 760 /* Oldest compatible export files */ #define LIBCITADEL_MIN 770 /* Minimum required version of libcitadel */ diff --git a/citadel/configure.ac b/citadel/configure.ac index ccd615106..3803da167 100644 --- a/citadel/configure.ac +++ b/citadel/configure.ac @@ -1,7 +1,7 @@ dnl Process this file with autoconf to produce a configure script. dnl $Id$ AC_PREREQ(2.52) -AC_INIT([Citadel], [7.70], [http://www.citadel.org/]) +AC_INIT([Citadel], [7.80], [http://www.citadel.org/]) AC_REVISION([$Revision: 5108 $]) AC_CONFIG_SRCDIR([citserver.c]) AC_CONFIG_HEADER(sysdep.h) diff --git a/citadel/msgbase.c b/citadel/msgbase.c index 4f5c4046f..aac75e053 100644 --- a/citadel/msgbase.c +++ b/citadel/msgbase.c @@ -757,6 +757,7 @@ int CtdlForEachMessage(int mode, long ref, char *search_string, || ((mode == MSGS_LAST) && (a >= (num_msgs - ref))) || ((mode == MSGS_FIRST) && (a < ref)) || ((mode == MSGS_GT) && (thismsg > ref)) + || ((mode == MSGS_LT) && (thismsg < ref)) || ((mode == MSGS_EQ) && (thismsg == ref)) ) ) { @@ -824,6 +825,8 @@ void cmd_msgs(char *cmdbuf) mode = MSGS_LAST; else if (!strncasecmp(which, "GT", 2)) mode = MSGS_GT; + else if (!strncasecmp(which, "LT", 2)) + mode = MSGS_LT; else if (!strncasecmp(which, "SEARCH", 6)) mode = MSGS_SEARCH; else diff --git a/citadel/msgbase.h b/citadel/msgbase.h index 67470b23b..7b8887622 100644 --- a/citadel/msgbase.h +++ b/citadel/msgbase.h @@ -12,7 +12,8 @@ enum { MSGS_LAST, MSGS_GT, MSGS_EQ, - MSGS_SEARCH + MSGS_SEARCH, + MSGS_LT }; enum {