dovecot-1.2: virtual: If search rule is missing, use SEARCH_ALL.
dovecot at dovecot.org
dovecot at dovecot.org
Thu May 28 21:42:26 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/6e42cd6ae8a7
changeset: 9098:6e42cd6ae8a7
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 77aab257cea2 -r 6e42cd6ae8a7 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