]> code.citadel.org Git - citadel.git/commitdiff
* Added a temporary command to insert a bogus message number
authorArt Cancro <ajc@citadel.org>
Thu, 25 Jan 2007 03:12:10 +0000 (03:12 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 25 Jan 2007 03:12:10 +0000 (03:12 +0000)
  into a room.  This is for debugging.

citadel/serv_imap.c

index 52e1a6989d21633818e5d875630fc75f43a742a3..d750168ec2f587debe037c9d7ea5d4f4eae6617c 100644 (file)
@@ -1648,6 +1648,18 @@ void imap_command_loop(void)
 
 
 
+
+/* temporary function to insert a bogus pointer in the lobbie */
+
+void cmd_bgus(char *argbuf)
+{
+       long bogus = 9999999;
+       CtdlSaveMsgPointersInRoom("Lobby", &bogus, 1, 0, NULL);
+       cprintf("%d bogus\n", CIT_OK);
+}
+
+
+
 /*
  * This function is called to register the IMAP extension with Citadel.
  */
@@ -1660,5 +1672,6 @@ char *serv_imap_init(void)
                                NULL, imaps_greeting, imap_command_loop, NULL);
 #endif
        CtdlRegisterSessionHook(imap_cleanup_function, EVT_STOP);
+        CtdlRegisterProtoHook(cmd_bgus, "BGUS", "bogus");
        return "$Id$";
 }