(*user_hdrs)->data = m_strdup(line);
if (do_2047)
rfc2047_decode(&(*user_hdrs)->data);
- (*user_hdrs)->next = mutt_new_list();
return &(*user_hdrs)->next;
}
return 0;
}
-/* -------------------- XXX: MC READ MARK ------------- */
-
static int count_body_parts (BODY *body, int flags)
{
int count = 0;
return count;
}
-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;
+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;
- if (AttachAllow || AttachExclude || InlineAllow || InlineExclude)
- hdr->attach_total = count_body_parts(hdr->content, flags | M_PARTS_TOPLEVEL);
- else
- hdr->attach_total = 0;
+ if (AttachAllow || AttachExclude || InlineAllow || InlineExclude)
+ hdr->attach_total = count_body_parts(hdr->content,
+ flags | M_PARTS_TOPLEVEL);
+ else
+ hdr->attach_total = 0;
- hdr->attach_valid = 1;
- return hdr->attach_total;
+ hdr->attach_valid = 1;
+ return hdr->attach_total;
}