summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-09-05 08:29:18 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-09-05 08:29:18 +0000
commite917808b05a800391d863632cd7883e1c4c13175 (patch)
tree7b0899733b0f6cfc6faf0f32c087d7b3e3e527ef /init.c
parentebf3737ce9f503ac65fe5ea9f03120ee7336c306 (diff)
Fix "unignore *": We must not add "*" to the unignore list.
Diffstat (limited to 'init.c')
-rw-r--r--init.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/init.c b/init.c
index 0e36775a..30cd88f1 100644
--- a/init.c
+++ b/init.c
@@ -364,7 +364,11 @@ static int parse_unignore (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *e
do
{
mutt_extract_token (buf, s, 0);
- add_to_list (&UnIgnore, buf->data);
+
+ /* don't add "*" to the unignore list */
+ if (strcmp (buf->data, "*"))
+ add_to_list (&UnIgnore, buf->data);
+
remove_from_list (&Ignore, buf->data);
}
while (MoreArgs (s));