X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sendlib.c;h=b82ff18aa085b4f61cb8bfa2be8fbb39496ca9b0;hp=b06696fc34f9b51441fd2ab74feb47999e251938;hb=b36dc16c428cc2b1371bb99c0581aa014f302791;hpb=bec523bb3ad78ec9100efb18fb58d43d38b304de diff --git a/sendlib.c b/sendlib.c index b06696f..b82ff18 100644 --- a/sendlib.c +++ b/sendlib.c @@ -19,14 +19,14 @@ #include #include +#include + #include "mutt.h" #include "handler.h" #include "recvattach.h" #include "mutt_curses.h" #include "rfc2047.h" -#include "rfc2231.h" #include "mx.h" -#include "mime.h" #include "copy.h" #include "pager.h" #include "charset.h" @@ -929,13 +929,9 @@ int mutt_lookup_mime_type (BODY * att, const char *path) sze = m_strlen(p); if ((sze > cur_sze) && (szf >= sze) && (m_strcasecmp(path + szf - sze, p) == 0 - || ascii_strcasecmp (path + szf - sze, p) == 0) && (szf == sze - || path[szf - - - sze - - - 1] - == '.')) { + || ascii_strcasecmp (path + szf - sze, p) == 0) + && (szf == sze || path[szf - sze - 1] == '.')) + { /* get the content-type */ if ((p = strchr (ct, '/')) == NULL) {