{
/* For now, editing requires a file, no piping */
mutt_error _("Mailcap Edit entry requires %%s");
+ goto bailout;
}
else
{
mutt_endwin (NULL);
if (mutt_system (command) == -1)
+ {
mutt_error (_("Error running \"%s\"!"), command);
+ goto bailout;
+ }
}
}
}
{
struct stat st;
time_t mtime = mutt_decrease_mtime (msg->content->filename, NULL);
-
+
mutt_update_encoding (msg->content);
/*
{
/* If the this isn't a text message, look for a mailcap edit command */
if (mutt_needs_mailcap (msg->content))
- mutt_edit_attachment (msg->content);
+ {
+ if (!mutt_edit_attachment (msg->content))
+ goto cleanup;
+ }
else if (!Editor || mutt_strcmp ("builtin", Editor) == 0)
mutt_builtin_editor (msg->content->filename, msg, cur);
else if (option (OPTEDITHDRS))