X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-ui%2Fhdrline.c;h=f3e138ba41d690099f5f0f1ad678cf994f8aae95;hp=2bc1bed04c995f5cf715f3c028fc2d25cbbcc9f9;hb=f2ff91d8b7627e22af9715d384b6f9e9e802a39e;hpb=3692b834c97c9933088d7082464fec5ae903920f diff --git a/lib-ui/hdrline.c b/lib-ui/hdrline.c index 2bc1bed..f3e138b 100644 --- a/lib-ui/hdrline.c +++ b/lib-ui/hdrline.c @@ -7,21 +7,11 @@ * please see the file GPL in the top level source directory. */ -#if HAVE_CONFIG_H -# include "config.h" -#endif - -#include -#include -#include -#include - -#include -#include +#include #include - #include +#include #include "mutt.h" #include "alias.h" @@ -405,7 +395,7 @@ static const char *hdr_format_str (char *dest, case 'f': buf2[0] = 0; - rfc822_write_address (buf2, sizeof (buf2), hdr->env->from, 1); + rfc822_addrcat(buf2, sizeof (buf2), hdr->env->from, 1); mutt_format_s (dest, destlen, prefix, buf2); break; @@ -638,12 +628,6 @@ static const char *hdr_format_str (char *dest, { int count = 0; - if (option (OPTCOUNTATTACH)) { - if (!hdr->content->parts) - mutt_parse_mime_message(ctx, hdr); - count = mutt_count_body_parts(hdr, 0); - } - /* The recursion allows messages without depth to return 0. */ if (optional) optional = count != 0;