Signed-off-by: Pierre Habouzit <madcoder@debian.org>
if (a->stamp >= st.st_mtime)
mutt_stamp_attachment (a);
if (a->stamp >= st.st_mtime)
mutt_stamp_attachment (a);
mutt_perror(fpin ? tempfile : a->filename);
mutt_perror(fpin ? tempfile : a->filename);
m_fclose(&fpin);
m_fclose(&fpout);
m_fclose(&fpin);
m_fclose(&fpout);
if (mutt_yesorno (_("Can't match nametemplate, continue?"), M_YES)
!= M_YES)
goto bailout;
if (mutt_yesorno (_("Can't match nametemplate, continue?"), M_YES)
!= M_YES)
goto bailout;
m_strcpy(newfile, sizeof(newfile), a->filename);
m_strcpy(newfile, sizeof(newfile), a->filename);
if (rfc1524_expand_command (a, newfile, type,
command, sizeof (command))) {
/* For now, editing requires a file, no piping */
mutt_error _("Mailcap compose entry requires %%s");
if (rfc1524_expand_command (a, newfile, type,
command, sizeof (command))) {
/* For now, editing requires a file, no piping */
mutt_error _("Mailcap compose entry requires %%s");
int r;
mutt_endwin (NULL);
int r;
mutt_endwin (NULL);
rfc1524_entry_delete(&entry);
mutt_message (_("No mailcap compose entry for %s, creating empty file."),
type);
rfc1524_entry_delete(&entry);
mutt_message (_("No mailcap compose entry for %s, creating empty file."),
type);
if (mutt_yesorno (_("Can't match nametemplate, continue?"), M_YES)
!= M_YES)
goto bailout;
if (mutt_yesorno (_("Can't match nametemplate, continue?"), M_YES)
!= M_YES)
goto bailout;
m_strcpy(newfile, sizeof(newfile), a->filename);
m_strcpy(newfile, sizeof(newfile), a->filename);
if (rfc1524_expand_command (a, newfile, type,
command, sizeof (command))) {
/* For now, editing requires a file, no piping */
mutt_error _("Mailcap Edit entry requires %%s");
goto bailout;
if (rfc1524_expand_command (a, newfile, type,
command, sizeof (command))) {
/* For now, editing requires a file, no piping */
mutt_error _("Mailcap Edit entry requires %%s");
goto bailout;
mutt_endwin (NULL);
if (mutt_system (command) == -1) {
mutt_error (_("Error running \"%s\"!"), command);
mutt_endwin (NULL);
if (mutt_system (command) == -1) {
mutt_error (_("Error running \"%s\"!"), command);
else if (a->type == TYPETEXT) {
/* On text, default to editor */
mutt_edit_file (NONULL (Editor), a->filename);
else if (a->type == TYPETEXT) {
/* On text, default to editor */
mutt_edit_file (NONULL (Editor), a->filename);
rfc1524_entry_delete(&entry);
mutt_error (_("No mailcap edit entry for %s"), type);
return 0;
rfc1524_entry_delete(&entry);
mutt_error (_("No mailcap edit entry for %s"), type);
return 0;
if (*(q + 1) == '*') {
if (ascii_strncasecmp (buf, p, q - p) == 0)
return (1);
if (*(q + 1) == '*') {
if (ascii_strncasecmp (buf, p, q - p) == 0)
return (1);
if (ascii_strcasecmp (buf, p) == 0)
return (1);
}
if (ascii_strcasecmp (buf, p) == 0)
return (1);
}
lng = m_strlen(p);
if (buf[lng] == '/' && m_strncasecmp(buf, p, lng) == 0)
return (1);
lng = m_strlen(p);
if (buf[lng] == '/' && m_strncasecmp(buf, p, lng) == 0)
return (1);
- snprintf (_type, sizeof (_type), "%s/%s", TYPE (b), b->subtype);
+ snprintf(_type, sizeof(_type), "%s/%s", TYPE(b), b->subtype);
else
m_strcpy(_type, sizeof(_type), type);
else
m_strcpy(_type, sizeof(_type), type);