projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oops, ascii_strncasecmp tried to compare one byte too far
[apps/madmutt.git]
/
lib-mime
/
mime.c
diff --git
a/lib-mime/mime.c
b/lib-mime/mime.c
index
4353e4d
..
43ccfd3
100644
(file)
--- a/
lib-mime/mime.c
+++ b/
lib-mime/mime.c
@@
-22,8
+22,7
@@
* Copyright (C) 1999-2000 Thomas Roessler <roessler@does-not-exist.org>
*/
* Copyright (C) 1999-2000 Thomas Roessler <roessler@does-not-exist.org>
*/
-#include <lib-lib/ascii.h>
-#include <lib-lib/url.h>
+#include <lib-lib/lib-lib.h>
#include "mime.h"
#include "mime.h"
@@
-202,9
+201,7
@@
void header_wipe(HEADER *h)
p_delete(&h->maildir_flags);
p_delete(&h->tree);
p_delete(&h->path);
p_delete(&h->maildir_flags);
p_delete(&h->tree);
p_delete(&h->path);
-#ifdef MIXMASTER
string_list_wipe(&h->chain);
string_list_wipe(&h->chain);
-#endif
p_delete(&h->data);
}
p_delete(&h->data);
}
@@
-213,6
+210,17
@@
void header_wipe(HEADER *h)
/* misc functions */
/****************************************************************************/
/* misc functions */
/****************************************************************************/
+int mutt_is_message_type(BODY *b)
+{
+ int tok;
+
+ if (b->type != TYPEMESSAGE)
+ return 0;
+
+ tok = mime_which_token(b->subtype, -1);
+ return tok == MIME_RFC822 || tok == MIME_NEWS;
+}
+
int mutt_is_text_part(BODY * b)
{
char *s = b->subtype;
int mutt_is_text_part(BODY * b)
{
char *s = b->subtype;