dovecot-2.0: virtual: If last search rule was invalid, we gave "...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Apr 29 20:37:28 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/13698b875984
changeset: 9169:13698b875984
user: Timo Sirainen <tss at iki.fi>
date: Wed Apr 29 13:37:12 2009 -0400
description:
virtual: If last search rule was invalid, we gave "Unknown error".
diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
src/plugins/virtual/virtual-config.c | 8 +++++++-
diffs (19 lines):
diff -r 6f4a4db41c44 -r 13698b875984 src/plugins/virtual/virtual-config.c
--- a/src/plugins/virtual/virtual-config.c Wed Apr 29 12:57:59 2009 -0400
+++ b/src/plugins/virtual/virtual-config.c Wed Apr 29 13:37:12 2009 -0400
@@ -338,8 +338,14 @@ int virtual_config_read(struct virtual_m
break;
}
}
- if (ret == 0)
+ if (ret == 0) {
ret = virtual_config_add_rule(&ctx, &error);
+ if (ret < 0) {
+ mail_storage_set_critical(mbox->ibox.storage,
+ "%s: Error at line %u: %s",
+ path, linenum, error);
+ }
+ }
virtual_mailbox_get_list_patterns(&ctx);
if (ret == 0 && ctx.have_wildcards)
More information about the dovecot-cvs
mailing list