dovecot: Allow #comments in trash config
dovecot at dovecot.org
dovecot at dovecot.org
Sun Feb 24 02:46:51 EET 2008
details: http://hg.dovecot.org/dovecot/rev/5ad7032ee313
changeset: 7282:5ad7032ee313
user: Timo Sirainen <tss at iki.fi>
date: Sun Feb 24 02:48:43 2008 +0200
description:
Allow #comments in trash config
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/plugins/trash/trash-plugin.c | 2 +-
diffs (12 lines):
diff -r 79fee036a09f -r 5ad7032ee313 src/plugins/trash/trash-plugin.c
--- a/src/plugins/trash/trash-plugin.c Thu Feb 21 22:52:36 2008 +0200
+++ b/src/plugins/trash/trash-plugin.c Sun Feb 24 02:48:43 2008 +0200
@@ -253,7 +253,7 @@ static int read_configuration(const char
while ((line = i_stream_read_next_line(input)) != NULL) {
/* <priority> <mailbox name> */
name = strchr(line, ' ');
- if (name == NULL || name[1] == '\0')
+ if (name == NULL || name[1] == '\0' || *line == '#')
continue;
trash = array_append_space(&trash_boxes);
More information about the dovecot-cvs
mailing list