]> granicus.if.org Git - mutt/commitdiff
close 1103; from Brendan Cully
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 25 Mar 2002 11:30:20 +0000 (11:30 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 25 Mar 2002 11:30:20 +0000 (11:30 +0000)
buffy.c

diff --git a/buffy.c b/buffy.c
index 432ff81ab731544d432e3f957055e54e174da961..0a15c92aac92b0f7fe082c93d1bb733f61ba0c84 100644 (file)
--- a/buffy.c
+++ b/buffy.c
@@ -189,6 +189,9 @@ int mutt_parse_mailboxes (BUFFER *path, BUFFER *s, unsigned long data, BUFFER *e
       *tmp = (BUFFY *) safe_calloc (1, sizeof (BUFFY));
       (*tmp)->path = safe_strdup (buf);
       (*tmp)->next = NULL;
+      /* it is tempting to set magic right here */
+      (*tmp)->magic = 0;
+      
     }
 
     (*tmp)->new = 0;
@@ -266,12 +269,12 @@ int mutt_buffy_check (int force)
     tmp->new = 0;
 
 #ifdef USE_IMAP
-    if ((tmp->magic == M_IMAP) || mx_is_imap (tmp->path))
+    if (mx_is_imap (tmp->path))
       tmp->magic = M_IMAP;
     else
 #endif
 #ifdef USE_POP
-    if ((tmp->magic == M_POP) || mx_is_pop (tmp->path))
+    if (mx_is_pop (tmp->path))
       tmp->magic = M_POP;
     else
 #endif