We added the standard \NoSelect, \NonExistent, \NoInferiors and \Subscribed
to special_use string, which caused them to be sent duplicated.
str_truncate(ctx->special_use, 0);
for (i = 0; i < N_ELEMENTS(imap_list_flags); i++) {
- if ((node->flags & imap_list_flags[i].flag) != 0) {
+ if ((node->flags & imap_list_flags[i].flag) != 0 &&
+ (node->flags & MAILBOX_SPECIALUSE_MASK) != 0) {
str_append(ctx->special_use, imap_list_flags[i].str);
str_append_c(ctx->special_use, ' ');
}
MAILBOX_SPECIALUSE_SENT = 0x00200000,
MAILBOX_SPECIALUSE_TRASH = 0x00400000,
MAILBOX_SPECIALUSE_IMPORTANT = 0x00800000,
+#define MAILBOX_SPECIALUSE_MASK 0x00ff0000
/* Internally used by lib-storage: */
MAILBOX_SELECT = 0x20000000,