dovecot-2.0: virtual: If search rule is missing, use SEARCH_ALL.
dovecot at dovecot.org
dovecot at dovecot.org
Thu May 28 21:42:34 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/11b8d0210b7a
changeset: 9404:11b8d0210b7a
user: Timo Sirainen <tss at iki.fi>
date: Thu May 28 14:42:21 2009 -0400
description:
virtual: If search rule is missing, use SEARCH_ALL.
diffstat:
1 file changed, 6 insertions(+)
src/plugins/virtual/virtual-config.c | 6 ++++++
diffs (16 lines):
diff -r 16b4e9cfa1c9 -r 11b8d0210b7a src/plugins/virtual/virtual-config.c
--- a/src/plugins/virtual/virtual-config.c Thu May 28 14:39:21 2009 -0400
+++ b/src/plugins/virtual/virtual-config.c Thu May 28 14:42:21 2009 -0400
@@ -35,6 +35,12 @@ virtual_search_args_parse(const string_t
struct mail_search_args *sargs;
bool fatal;
int ret;
+
+ if (str_len(rule) == 0) {
+ sargs = mail_search_build_init();
+ mail_search_build_add_all(sargs);
+ return sargs;
+ }
input = i_stream_create_from_data(str_data(rule), str_len(rule));
(void)i_stream_read(input);
More information about the dovecot-cvs
mailing list