CHECK_MSGCOUNT;
CHECK_VISIBLE;
mutt_view_attachments (CURHDR);
- if (CURHDR->attach_del)
+ if (Context && CURHDR->attach_del)
Context->changed = 1;
menu->redraw = REDRAW_FULL;
break;
hdr = hfi->hdr;
ctx = hfi->ctx;
+ if (!hdr || !hdr->env)
+ return src;
dest[0] = 0;
switch (op)
{
/* close a pointer to a message */
int mx_close_message (CONTEXT *ctx, MESSAGE **msg)
{
+ if (!ctx || !msg)
+ return 0;
int r = 0;
if (ctx->mx_ops && ctx->mx_ops->close_msg)
{
if (op == OP_NULL)
op = mutt_menuLoop (menu);
+ if (!Context)
+ return;
switch (op)
{
case OP_ATTACH_VIEW_MAILCAP:
static int is_reply (HEADER *reply, HEADER *orig)
{
+ if (!reply || !reply->env || !orig || !orig->env)
+ return 0;
return mutt_find_list (orig->env->references, reply->env->message_id) ||
mutt_find_list (orig->env->in_reply_to, reply->env->message_id);
}