dovecot-2.0: virtual: Allow search rule continuation lines to be...

dovecot at dovecot.org dovecot at dovecot.org
Fri Mar 4 18:32:13 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/d32a23fa160d
changeset: 12642:d32a23fa160d
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Mar 04 18:32:09 2011 +0200
description:
virtual: Allow search rule continuation lines to begin with tab as well as space.

diffstat:

 src/plugins/virtual/virtual-config.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 3f21260a72ce -r d32a23fa160d src/plugins/virtual/virtual-config.c
--- a/src/plugins/virtual/virtual-config.c	Fri Mar 04 18:31:02 2011 +0200
+++ b/src/plugins/virtual/virtual-config.c	Fri Mar 04 18:32:09 2011 +0200
@@ -117,6 +117,8 @@
 			*error_r = "Search rule without a mailbox";
 			return -1;
 		}
+		while (*line == ' ' || *line == '\t') line++;
+		str_append_c(ctx->rule, ' ');
 		str_append(ctx->rule, line);
 		return 0;
 	}


More information about the dovecot-cvs mailing list