Mercurial > dovecot > original-hg > dovecot-1.2
comparison src/plugins/virtual/virtual-config.c @ 9047:c5b16d6c39c9 HEAD
virtual: If we can't open a mailbox that was added using a wildcard, just skip it.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 17 May 2009 18:45:23 -0400 |
parents | 720560d19f5b |
children | 6e42cd6ae8a7 |
comparison
equal
deleted
inserted
replaced
9046:54686141353f | 9047:c5b16d6c39c9 |
---|---|
211 | 211 |
212 bbox = p_new(ctx->pool, struct virtual_backend_box, 1); | 212 bbox = p_new(ctx->pool, struct virtual_backend_box, 1); |
213 *bbox = *wbox; | 213 *bbox = *wbox; |
214 bbox->name = p_strdup(ctx->pool, name); | 214 bbox->name = p_strdup(ctx->pool, name); |
215 bbox->glob = NULL; | 215 bbox->glob = NULL; |
216 bbox->wildcard = TRUE; | |
216 mail_search_args_ref(bbox->search_args); | 217 mail_search_args_ref(bbox->search_args); |
217 array_append(&ctx->mbox->backend_boxes, &bbox, 1); | 218 array_append(&ctx->mbox->backend_boxes, &bbox, 1); |
218 } | 219 } |
219 | 220 |
220 static bool virtual_config_match(const struct mailbox_info *info, | 221 static bool virtual_config_match(const struct mailbox_info *info, |