* Added a new 'MSGS LT' subcommand
authorArt Cancro <ajc@citadel.org>
Wed, 30 Dec 2009 18:10:05 +0000 (18:10 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 30 Dec 2009 18:10:05 +0000 (18:10 +0000)
* Version number to 7.80

citadel/citadel.h
citadel/configure.ac
citadel/msgbase.c
citadel/msgbase.h

index ff484f3b95d2538a02ac53f3a7065ff32bd1f37a..93ff39a482929e809a75fb59543f5a552a89bedc 100644 (file)
@@ -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 */
index ccd615106d0f8f55d96847a6f9390be72f244c06..3803da167ee0cc7730c8337dde2bafb55cd42ce6 100644 (file)
@@ -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)
index 4f5c4046f0bdea2291a6203ae88a7d86f0d631ea..aac75e05319d9f0a69fb4c8939e0f04b6ae25ae1 100644 (file)
@@ -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
index 67470b23b5bf7d94d925f85426b131453f76f07f..7b888762278b03113a31bc01bae90cc94651f502 100644 (file)
@@ -12,7 +12,8 @@ enum {
        MSGS_LAST,
        MSGS_GT,
        MSGS_EQ,
-       MSGS_SEARCH
+       MSGS_SEARCH,
+       MSGS_LT
 };
 
 enum {