+/*
+ * Return nonzero if the supplied room is one which should have
+ * an EUID index.
+ */
+int DoesThisRoomNeedEuidIndexing(struct ctdlroom *qrbuf) {
+
+ switch(qrbuf->QRdefaultview) {
+ case VIEW_BBS: return(0);
+ case VIEW_MAILBOX: return(0);
+ case VIEW_ADDRESSBOOK: return(1);
+ case VIEW_DRAFTS: return(0);
+ case VIEW_CALENDAR: return(1);
+ case VIEW_TASKS: return(1);
+ case VIEW_NOTES: return(1);
+ case VIEW_WIKI: return(1);
+ case VIEW_WIKIMD: return(1);
+ case VIEW_BLOG: return(1);
+ }
+
+ return(0);
+}
+
+
+/*
+ * Locate a message in a given room with a given euid, and return
+ * its message number.
+ */