changeset 7287:75526c605044 HEAD

Allow #comments in trash config
author Timo Sirainen <tss@iki.fi>
date Sun, 24 Feb 2008 02:48:46 +0200
parents c47b498a427b
children 0917df31efec
files src/plugins/trash/trash-plugin.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/trash/trash-plugin.c	Thu Feb 21 23:12:46 2008 +0200
+++ b/src/plugins/trash/trash-plugin.c	Sun Feb 24 02:48:46 2008 +0200
@@ -253,7 +253,7 @@
 	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);