+void rfc1524_entry_wipe(rfc1524_entry *p)
+{
+ p_delete(&p->command);
+ p_delete(&p->testcommand);
+ p_delete(&p->composecommand);
+ p_delete(&p->composetypecommand);
+ p_delete(&p->editcommand);
+ p_delete(&p->printcommand);
+ p_delete(&p->nametemplate);
+ p_delete(&p->convert);
+}
+
+/* returns 1 if Mutt can't display this type of data, 0 otherwise */
+int rfc1524_mailcap_isneeded(BODY * m)
+{
+ switch (m->type) {
+ case TYPEMULTIPART:
+ case TYPEMESSAGE:
+ return 0;
+
+ case TYPEAPPLICATION:
+ return !(mutt_is_application_pgp(m) || mutt_is_application_smime(m));
+
+ case TYPETEXT:
+ switch (mime_which_token(m->subtype, -1)) {
+ case MIME_PLAIN:
+ case MIME_RFC822_HEADERS:
+ case MIME_ENRICHED:
+ return 0;
+ default:
+ return 1;
+ }
+ default:
+ return 1;
+ }
+}
+