projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oops, d can be NULL !
[apps/madmutt.git]
/
attach.c
diff --git
a/attach.c
b/attach.c
index
99b1aa9
..
2b9fb0f
100644
(file)
--- a/
attach.c
+++ b/
attach.c
@@
-851,6
+851,7
@@
int mutt_print_attachment (FILE * fp, BODY * a)
pid_t thepid;
FILE *ifp, *fpout;
short unlink_newfile = 0;
pid_t thepid;
FILE *ifp, *fpout;
short unlink_newfile = 0;
+ int tok;
snprintf (type, sizeof (type), "%s/%s", TYPE (a), a->subtype);
snprintf (type, sizeof (type), "%s/%s", TYPE (a), a->subtype);
@@
-922,8
+923,8
@@
int mutt_print_attachment (FILE * fp, BODY * a)
return (1);
}
return (1);
}
- if (!ascii_strcasecmp ("text/plain", type) ||
-
!ascii_strcasecmp ("application/postscript", type)
) {
+ tok = mime_which_token(type, -1);
+
if (tok == MIME_TEXT_PLAIN || tok == MIME_APPLICATION_POSTSCRIPT
) {
return (mutt_pipe_attachment (fp, a, NONULL (PrintCmd), NULL));
}
else if (mutt_can_decode (a)) {
return (mutt_pipe_attachment (fp, a, NONULL (PrintCmd), NULL));
}
else if (mutt_can_decode (a)) {