dovecot-1.2: Virtual mailboxes: Configuration parsing fix.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Oct 12 14:48:22 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/399bf5883beb
changeset: 8269:399bf5883beb
user: Timo Sirainen <tss at iki.fi>
date: Sun Oct 12 14:47:51 2008 +0300
description:
Virtual mailboxes: Configuration parsing fix.
diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
src/plugins/virtual/virtual-config.c | 8 ++++++--
diffs (18 lines):
diff -r eb320fbb87f0 -r 399bf5883beb src/plugins/virtual/virtual-config.c
--- a/src/plugins/virtual/virtual-config.c Sun Oct 12 14:40:57 2008 +0300
+++ b/src/plugins/virtual/virtual-config.c Sun Oct 12 14:47:51 2008 +0300
@@ -106,8 +106,12 @@ virtual_config_parse_line(struct virtual
str_append(ctx->rule, line);
return 0;
}
- if (virtual_config_add_rule(ctx, error_r) < 0)
- return -1;
+ /* if there is no rule yet, it means we want the previous mailboxes
+ to use the rule that comes later */
+ if (str_len(ctx->rule) > 0) {
+ if (virtual_config_add_rule(ctx, error_r) < 0)
+ return -1;
+ }
/* new mailbox. the search args are added to it later. */
bbox = p_new(ctx->pool, struct virtual_backend_box, 1);
More information about the dovecot-cvs
mailing list