]> code.citadel.org Git - citadel.git/blobdiff - citadel/euidindex.c
* create new roomview type: Drafts; this won't need subjects.
[citadel.git] / citadel / euidindex.c
index ce9ebd350d1f22ae4b14772c7570b675d0b704e0..b40041017c9e9b17c686f54060649bc1237477f8 100644 (file)
@@ -44,6 +44,8 @@
 #include "control.h"
 #include "euidindex.h"
 
+#include "ctdl_module.h"
+
 /*
  * The structure of an euidindex record *key* is:
  *
@@ -69,6 +71,7 @@ int DoesThisRoomNeedEuidIndexing(struct ctdlroom *qrbuf) {
        switch(qrbuf->QRdefaultview) {
                case VIEW_BBS:          return(0);
                case VIEW_MAILBOX:      return(0);
+               case VIEW_DRAFTS:       return(0);
                case VIEW_ADDRESSBOOK:  return(1);
                case VIEW_CALENDAR:     return(1);
                case VIEW_TASKS:        return(1);
@@ -250,4 +253,9 @@ void cmd_euid(char *cmdbuf) {
        cprintf("%d not found\n", ERROR + MESSAGE_NOT_FOUND);
 }
 
-
+CTDL_MODULE_INIT(euidindex)
+{
+       CtdlRegisterProtoHook(cmd_euid, "EUID", "Autoconverted. TODO: document me.");
+       /* return our Subversion id for the Log */
+       return "$Id$";
+}