Rocco Rutte:
[apps/madmutt.git] / parse.c
diff --git a/parse.c b/parse.c
index bf7d76d..036a183 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -1551,6 +1551,8 @@ int count_body_parts (BODY *body, int flags) {
 }
 
 int mutt_count_body_parts (HEADER *hdr, int flags) {
+  if (!option (OPTCOUNTATTACH))
+    return (0);
   if (hdr->attach_valid && !(flags & M_PARTS_RECOUNT))
     return hdr->attach_total;