X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=compose.c;h=8a8d0c5c31387c0319f00817e7e816c5a627cdbe;hp=d93dbfd6127a645b2de99153e4a38e62ef1086c4;hb=9ed7a487e3a922f2cbb222961c2c9710c3a65f91;hpb=230399f9632c37b66c1c117a17e8327eae6b3235 diff --git a/compose.c b/compose.c index d93dbfd..8a8d0c5 100644 --- a/compose.c +++ b/compose.c @@ -11,17 +11,6 @@ * 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 @@ -31,6 +20,7 @@ #include #include #include +#include #include "mutt.h" #include "alias.h" @@ -39,16 +29,14 @@ #include "recvattach.h" #include "sort.h" #include "charset.h" -#include "mx.h" #include "buffy.h" -#include "compose.h" #ifdef MIXMASTER #include "remailer.h" #endif #ifdef USE_NNTP -#include "nntp.h" +#include #endif static const char *There_are_no_attachments = N_("There are no attachments."); @@ -438,6 +426,9 @@ static unsigned long cum_attachs_size (MUTTMENU * menu) * help when modifying this function. */ +static void compose_status_line (char *buf, ssize_t buflen, MUTTMENU * menu, + const char *p); + static const char *compose_format_str (char *buf, ssize_t buflen, char op, const char *src, const char *prefix, const char *ifstring, @@ -1174,7 +1165,7 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ p_delete(&idx[idxlen]); continue; } - fclose (fp); + m_fclose(&fp); if ((idx[idxlen]->content = mutt_make_file_attach (fname)) == NULL) { mutt_error