else if (!strcasecmp(&CC->room.QRname[11], SENTITEMS)) {
cprintf("mail.sentitems");
}
+ else if (!strcasecmp(&CC->room.QRname[11], USERDRAFTROOM)) {
+ cprintf("mail.drafts");
+ }
else if (!strcasecmp(&CC->room.QRname[11], USERCALENDARROOM)) {
cprintf("event.default");
}
else if (!strcasecmp(towhere, "_TRASH_")) {
safestrncpy(towhere, USERTRASHROOM, maxlen);
}
+ else if (!strcasecmp(towhere, "_DRAFTS_")) {
+ safestrncpy(towhere, USERDRAFTROOM, maxlen);
+ }
else if (!strcasecmp(towhere, "_BITBUCKET_")) {
safestrncpy(towhere, config.c_twitroom, maxlen);
}
#define USERTASKSROOM "Tasks"
#define USERCONTACTSROOM "Contacts"
#define USERNOTESROOM "Notes"
+#define USERDRAFTROOM "Drafts"
#define USERTRASHROOM "Trash"
#define PAGELOGROOM "Sent/Received Pages"
#define SYSCONFIGROOM "Local System Configuration"
create_room(MAILROOM, 4, "", 0, 1, 0, VIEW_MAILBOX);
create_room(SENTITEMS, 4, "", 0, 1, 0, VIEW_MAILBOX);
create_room(USERTRASHROOM, 4, "", 0, 1, 0, VIEW_MAILBOX);
+ create_room(USERDRAFTROOM, 4, "", 0, 1, 0, VIEW_MAILBOX);
/* Run any startup routines registered by loadable modules */
PerformSessionHooks(EVT_LOGIN);