It will return this when a nametemplate entry already matched the
passed in filename. So this bug required both a print entry and an
already matching nametemplate entry to trigger.
Co-authored-by: Richard Russon <rich@flatcap.org>
unlink_newfile = true;
}
}
+ else if (!fp) /* send case */
+ mutt_buffer_strcpy(newfile, a->filename);
/* in recv mode, save file to newfile first */
if (fp && (mutt_save_attachment(fp, a, mutt_b2s(newfile), MUTT_SAVE_NO_FLAGS, NULL) != 0))