dovecot-1.2: imap: Fixed tb-extra-mailbox-sep workeround.
dovecot at dovecot.org
dovecot at dovecot.org
Tue Aug 4 21:27:35 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/9fe57d8ec946
changeset: 9282:9fe57d8ec946
user: Timo Sirainen <tss at iki.fi>
date: Tue Aug 04 14:27:29 2009 -0400
description:
imap: Fixed tb-extra-mailbox-sep workeround.
diffstat:
2 files changed, 8 insertions(+), 4 deletions(-)
src/imap/cmd-delete.c | 7 +++++--
src/imap/cmd-subscribe.c | 5 +++--
diffs (45 lines):
diff -r 3a25f14abf12 -r 9fe57d8ec946 src/imap/cmd-delete.c
--- a/src/imap/cmd-delete.c Mon Aug 03 12:54:21 2009 -0400
+++ b/src/imap/cmd-delete.c Tue Aug 04 14:27:29 2009 -0400
@@ -2,10 +2,12 @@
#include "common.h"
#include "commands.h"
+#include "mail-namespace.h"
bool cmd_delete(struct client_command_context *cmd)
{
struct client *client = cmd->client;
+ struct mail_namespace *ns;
struct mail_storage *storage;
struct mailbox_list *list;
struct mailbox *mailbox;
@@ -21,9 +23,10 @@ bool cmd_delete(struct client_command_co
return TRUE;
}
- storage = client_find_storage(cmd, &name);
- if (storage == NULL)
+ ns = client_find_namespace(cmd, &name);
+ if (ns == NULL)
return TRUE;
+ storage = ns->storage;
mailbox = client->mailbox;
if (mailbox != NULL && mailbox_get_storage(mailbox) == storage &&
diff -r 3a25f14abf12 -r 9fe57d8ec946 src/imap/cmd-subscribe.c
--- a/src/imap/cmd-subscribe.c Mon Aug 03 12:54:21 2009 -0400
+++ b/src/imap/cmd-subscribe.c Tue Aug 04 14:27:29 2009 -0400
@@ -38,9 +38,10 @@ bool cmd_subscribe_full(struct client_co
verify_name = mailbox;
real_name = mailbox;
- storage = client_find_storage(cmd, &real_name);
- if (storage == NULL)
+ ns = client_find_namespace(cmd, &real_name);
+ if (ns == NULL)
return TRUE;
+ storage = ns->storage;
/* now find a namespace where the subscription can be added to */
ns = mail_namespace_find_subscribable(cmd->client->user->namespaces,
More information about the dovecot-cvs
mailing list