dovecot-1.2: mail_location: If it ends with ":", ignore it inste...

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 28 22:57:55 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/d0e7d95ca46a
changeset: 9391:d0e7d95ca46a
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 28 15:57:48 2009 -0400
description:
mail_location: If it ends with ":", ignore it instead of adding ":" character.
If ":" is really wanted, it should be done with "::".

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/mailbox-list.c |    2 +-

diffs (12 lines):

diff -r 3132464fbe9c -r d0e7d95ca46a src/lib-storage/mailbox-list.c
--- a/src/lib-storage/mailbox-list.c	Mon Sep 28 14:24:14 2009 -0400
+++ b/src/lib-storage/mailbox-list.c	Mon Sep 28 15:57:48 2009 -0400
@@ -142,7 +142,7 @@ static const char *split_next_arg(const 
 	while (*args != NULL && **args == '\0') {
 		args++;
 		if (*args == NULL) {
-			str = t_strconcat(str, ":", NULL);
+			/* string ends with ":", just ignore it. */
 			break;
 		}
 		str = t_strconcat(str, ":", *args, NULL);


More information about the dovecot-cvs mailing list