]> granicus.if.org Git - mutt/commitdiff
when doing the second parsing pass on a maildir, mutt doesn't delete
authorArmin Wolfermann <aw@osn.de>
Mon, 9 Sep 2002 19:56:25 +0000 (19:56 +0000)
committerArmin Wolfermann <aw@osn.de>
Mon, 9 Sep 2002 19:56:25 +0000 (19:56 +0000)
the fake HEADER struct if the file is unreadable. With this fix
unreadable files get silently ignored (like in the MH case).

mh.c

diff --git a/mh.c b/mh.c
index 577e33853851bfdcc8d3f0ed78ad3116c71b572a..82dfaae0f9b0999d02ce47ae5f13a46d5daf7306 100644 (file)
--- a/mh.c
+++ b/mh.c
@@ -593,8 +593,9 @@ static HEADER *maildir_parse_message (int magic, const char *fname,
       h->old = is_old;
       maildir_parse_flags (h, fname);
     }
+    return h;
   }
-  return h;
+  return NULL;
 }
 
 /*