Inline part of a multipart/alternative message no longer have filename
When turning a message into multipart/alternative, all parts
in the bundled message should be "inline" and its corresponding
filename should not be displayed in the header (to avoid some MUA)
treating this part as a downloadable attachment.
Also, since there are handling of `msg->content` at the very end
mutt_compose_menu(), I will safely remove that commented-out line
group->next = NULL;
mutt_generate_boundary(&group->parameter);
- /* msg->content = NULL; */
-
struct AttachPtr *gptr = mutt_mem_calloc(1, sizeof(struct AttachPtr));
gptr->content = group;
update_idx(menu, actx, gptr);
{
fprintf(f, "Content-Disposition: %s", dispstr[a->disposition]);
- if (a->use_disp)
+ if (a->use_disp && (a->disposition != DISPINLINE))
{
char *fn = a->d_filename;
if (!fn)