if (ans == MUTT_YES)
{
mutt_message(_("Including quoted message..."));
- if (!single)
+ if (single && en)
+ include_reply(m, en->email, fp_tmp);
+ else
{
STAILQ_FOREACH(en, el, entries)
{
fputc('\n', fp_tmp);
}
}
- else
- include_reply(m, en->email, fp_tmp);
}
}
else if (flags & SEND_FORWARD)
while (last && last->next)
last = last->next;
- if (single)
+ if (single && en)
{
tmp = mutt_make_message_attach(m, en->email, false);
if (last)
}
}
}
- else if (ans != MUTT_ABORT)
+ else if ((ans != MUTT_ABORT) && en)
{
if (mutt_inline_forward(m, e, en->email, fp_tmp) != 0)
return -1;