diff src/plugins/trash/trash-plugin.c @ 7287:75526c605044 HEAD

Allow #comments in trash config
author Timo Sirainen <tss@iki.fi>
date Sun, 24 Feb 2008 02:48:46 +0200
parents 7ed926ed7aa4
children 077bb84e9e77
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);