summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
00d4a66)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
BODY *mutt_parse_multipart(FILE *, const char *, off_t, int);
LIST **mutt_parse_rfc822_line(ENVELOPE *, HEADER *, char *line, char *p,
short weed, short do_2047, LIST **);
BODY *mutt_parse_multipart(FILE *, const char *, off_t, int);
LIST **mutt_parse_rfc822_line(ENVELOPE *, HEADER *, char *line, char *p,
short weed, short do_2047, LIST **);
ENVELOPE *mutt_read_rfc822_header(FILE *, HEADER *, short, short);
ENVELOPE *mutt_read_rfc822_header(FILE *, HEADER *, short, short);
+int mutt_count_body_parts (HEADER *hdr, int flags);
-/* -------------------- XXX: MC READ MARK ------------- */
-
static int count_body_parts (BODY *body, int flags)
{
int count = 0;
static int count_body_parts (BODY *body, int flags)
{
int count = 0;
-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;
void mutt_block_signals_system (void);
int mutt_bounce_message (FILE * fp, HEADER *, address_t *);
void mutt_canonical_charset (char *, size_t, const char *);
void mutt_block_signals_system (void);
int mutt_bounce_message (FILE * fp, HEADER *, address_t *);
void mutt_canonical_charset (char *, size_t, const char *);
-int mutt_count_body_parts (HEADER *hdr, int flags);
void mutt_check_rescore (CONTEXT *);
void mutt_clear_error (void);
void mutt_default_save (char *, size_t, HEADER *);
void mutt_check_rescore (CONTEXT *);
void mutt_clear_error (void);
void mutt_default_save (char *, size_t, HEADER *);