From df79f971c5a38d865a9aeaff831f9aaf4cf9c883 Mon Sep 17 00:00:00 2001 From: Armin Wolfermann Date: Mon, 9 Sep 2002 19:56:25 +0000 Subject: [PATCH] when doing the second parsing pass on a maildir, mutt doesn't delete the fake HEADER struct if the file is unreadable. With this fix unreadable files get silently ignored (like in the MH case). --- mh.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mh.c b/mh.c index 577e3385..82dfaae0 100644 --- 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; } /* -- 2.40.0