projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add more encoding arrays
[apps/madmutt.git]
/
sendlib.c
diff --git
a/sendlib.c
b/sendlib.c
index
b06696f
..
b82ff18
100644
(file)
--- a/
sendlib.c
+++ b/
sendlib.c
@@
-19,14
+19,14
@@
#include <lib-lib/macros.h>
#include <lib-lib/file.h>
#include <lib-lib/macros.h>
#include <lib-lib/file.h>
+#include <lib-mime/mime.h>
+
#include "mutt.h"
#include "handler.h"
#include "recvattach.h"
#include "mutt_curses.h"
#include "rfc2047.h"
#include "mutt.h"
#include "handler.h"
#include "recvattach.h"
#include "mutt_curses.h"
#include "rfc2047.h"
-#include "rfc2231.h"
#include "mx.h"
#include "mx.h"
-#include "mime.h"
#include "copy.h"
#include "pager.h"
#include "charset.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
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) {
/* get the content-type */
if ((p = strchr (ct, '/')) == NULL) {