pid_t thepid;
FILE *ifp, *fpout;
short unlink_newfile = 0;
+ int tok;
snprintf (type, sizeof (type), "%s/%s", TYPE (a), a->subtype);
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)) {