void create_extnotify_queue(void) {
struct ctdlroom qrbuf;
- CtdlCreateRoom(FNBL_QUEUE_ROOM, 3, "", 0, 1, 0, VIEW_MAILBOX);
+ CtdlCreateRoom(FNBL_QUEUE_ROOM, 3, "", 0, 1, 0, VIEW_QUEUE);
CtdlFillSystemContext(&extnotify_queue_CC, "Extnotify");
int i;
struct RoomProcList *ptr;
+ if (qrbuf->QRdefaultview == VIEW_QUEUE)
+ return;
ptr = (struct RoomProcList *) malloc(sizeof (struct RoomProcList));
if (ptr == NULL) return;
* Create the room. This will silently fail if the room already
* exists, and that's perfectly ok, because we want it to exist.
*/
- CtdlCreateRoom(SMTP_SPOOLOUT_ROOM, 3, "", 0, 1, 0, VIEW_MAILBOX);
+ CtdlCreateRoom(SMTP_SPOOLOUT_ROOM, 3, "", 0, 1, 0, VIEW_QUEUE);
/*
* Make sure it's set to be a "system room" so it doesn't show up
config.c_xmpp_s2s_port = 5269;
}
+ if (CitControl.version < 725) {
+
+
+ }
if (IsEmptyStr(config.c_default_cal_zone)) {
guess_time_zone();
}
if (CitControl.version < 790) {
remove_thread_users();
}
+ if (CitControl.version < 810) {
+ struct ctdlroom QRoom;
+ if (!CtdlGetRoom(&QRoom, SMTP_SPOOLOUT_ROOM)) {
+ QRoom.QRdefaultview = VIEW_QUEUE;
+ CtdlPutRoom(&QRoom);
+ }
+ if (!CtdlGetRoom(&QRoom, FNBL_QUEUE_ROOM)) {
+ QRoom.QRdefaultview = VIEW_QUEUE;
+ CtdlPutRoom(&QRoom);
+ }
+ }
+
CitControl.version = REV_LEVEL;
/*
VIEW_JOURNAL = 8, /* Journal view */
VIEW_DRAFTS = 9, /* Drafts view */
VIEW_BLOG = 10, /* Blog view */
+ VIEW_QUEUE = 11, /* SMTP/... QUEUE rooms */
VIEW_MAX
} ROOM_VIEWS;