~ubuntu-branches/ubuntu/wily/dovecot/wily

« back to all changes in this revision

Viewing changes to src/indexer/master-connection.c

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2015-05-24 15:01:19 UTC
  • mto: (4.1.53 sid)
  • mto: This revision was merged to the branch mainline in revision 102.
  • Revision ID: package-import@ubuntu.com-20150524150119-hsh6cbr1fqseapga
Tags: upstream-2.2.18
ImportĀ upstreamĀ versionĀ 2.2.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
        ns = mail_namespace_find(user->namespaces, mailbox);
140
140
        box = mailbox_alloc(ns->list, mailbox, 0);
141
141
        ret = mailbox_get_path_to(box, MAILBOX_LIST_PATH_TYPE_INDEX, &path);
142
 
        if (ret <= 0) {
 
142
        if (ret < 0) {
 
143
                i_error("Getting path to mailbox %s failed: %s",
 
144
                        mailbox, mailbox_get_last_error(box, NULL));
143
145
                mailbox_free(&box);
144
 
                if (ret < 0) {
145
 
                        i_error("Getting path to mailbox %s failed: %s",
146
 
                                mailbox, mailbox_get_last_error(box, NULL));
147
 
                        return -1;
148
 
                }
 
146
                return -1;
 
147
        }
 
148
        if (ret == 0) {
149
149
                i_info("Indexes disabled for mailbox %s, skipping", mailbox);
 
150
                mailbox_free(&box);
150
151
                return 0;
151
152
        }
152
153
        ret = 0;