- if (!rfc1524_mailcap_lookup (top, type, NULL, M_PRINT)) {
- if (ascii_strcasecmp ("text/plain", top->subtype) &&
- ascii_strcasecmp ("application/postscript", top->subtype)) {
- if (!mutt_can_decode (top)) {
- mutt_error (_("I dont know how to print %s attachments!"), type);
- return (0);
- }
- }
+ if (!rfc1524_mailcap_lookup(top, type, NULL, M_PRINT)
+ && !(top->type == TYPETEXT && tok == MIME_PLAIN)
+ && !(top->type == TYPEAPPLICATION && tok == MIME_POSTSCRIPT)
+ && !mutt_can_decode(top))
+ {
+ mutt_error(_("I dont know how to print %s attachments!"), type);
+ return 0;