* Rolled back the 'MSGS EUID' subcommand introduced in r7866. I didn't need it after...
authorArt Cancro <ajc@citadel.org>
Thu, 8 Oct 2009 03:32:53 +0000 (03:32 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 8 Oct 2009 03:32:53 +0000 (03:32 +0000)
citadel/msgbase.c
citadel/msgbase.h

index 9563223d63961eb05d222e557f24192ec96fd6de..7b4873cee126a5ee59332e3f4c5e958416357fc7 100644 (file)
@@ -562,9 +562,7 @@ void CtdlSetSeen(long *target_msgnums, int num_target_msgnums,
  * API function to perform an operation for each qualifying message in the
  * current room.  (Returns the number of messages processed.)
  */
-int CtdlForEachMessage(int mode,
-                       long ref,
-                       char *search_string,
+int CtdlForEachMessage(int mode, long ref, char *search_string,
                        char *content_type,
                        struct CtdlMessage *compare,
                        void (*CallBack) (long, void *),
@@ -656,30 +654,6 @@ int CtdlForEachMessage(int mode,
                }
        }
 
-       /* If an EUID was specified, throw away all messages except the correct one. */
-       if (mode == MSGS_EUID) {
-               long correct_msgnum;
-               int found_match = 0;
-
-               if ((num_msgs > 0) && (search_string) ) {
-                       correct_msgnum = locate_message_by_euid(search_string, &CC->room);
-                       if ( (num_msgs > 0) && (correct_msgnum >= 0L) ) {
-                               for (i=0; i<num_msgs; ++i) {
-                                       if (msglist[i] == correct_msgnum) {
-                                               found_match = 1;
-                                       }
-                               }
-                       }
-               }
-               if (found_match) {
-                       msglist[0] = correct_msgnum;
-                       num_msgs = 1;
-               } else {
-                       num_msgs = 0;   /* didn't find the right one ... dump the rest */
-               }
-               mode = MSGS_ALL;        /* treat it like 'read all' from now on */
-       }
-
        /* If a search string was specified, get a message list from
         * the full text index and remove messages which aren't on both
         * lists.
@@ -806,8 +780,6 @@ void cmd_msgs(char *cmdbuf)
                mode = MSGS_GT;
        else if (!strncasecmp(which, "SEARCH", 6))
                mode = MSGS_SEARCH;
-       else if (!strncasecmp(which, "EUID", 4))
-               mode = MSGS_EUID;
        else
                mode = MSGS_ALL;
 
@@ -850,7 +822,7 @@ void cmd_msgs(char *cmdbuf)
 
        CtdlForEachMessage(mode,
                        ( (mode == MSGS_SEARCH) ? 0 : cm_ref ),
-                       ( ((mode == MSGS_SEARCH)||(mode == MSGS_EUID)) ? search_string : NULL ),
+                       ( (mode == MSGS_SEARCH) ? search_string : NULL ),
                        NULL,
                        template,
                        (with_headers ? headers_listing : simple_listing),
index f058527e35d2b67bfa5ade251d17f768a39147ad..56f2488249358035514925632b27116a1a9b2737 100644 (file)
@@ -13,8 +13,7 @@ enum {
        MSGS_LAST,
        MSGS_GT,
        MSGS_EQ,
-       MSGS_SEARCH,
-       MSGS_EUID
+       MSGS_SEARCH
 };
 
 /*