edit_address_list(HDR_FROM, &msg->env->from);
mutt_message_hook(NULL, msg, MUTT_SEND2_HOOK);
break;
+
case OP_COMPOSE_EDIT_TO:
#ifdef USE_NNTP
if (news)
}
mutt_message_hook(NULL, msg, MUTT_SEND2_HOOK);
break;
+
case OP_COMPOSE_EDIT_BCC:
#ifdef USE_NNTP
if (news)
}
mutt_message_hook(NULL, msg, MUTT_SEND2_HOOK);
break;
+
case OP_COMPOSE_EDIT_CC:
#ifdef USE_NNTP
if (news)
clrtoeol();
}
break;
+
case OP_COMPOSE_EDIT_FOLLOWUP_TO:
if (!news)
break;
clrtoeol();
}
break;
+
case OP_COMPOSE_EDIT_X_COMMENT_TO:
if (!(news && XCommentTo))
break;
}
break;
#endif
+
case OP_COMPOSE_EDIT_SUBJECT:
if (msg->env->subject)
mutt_str_strfcpy(buf, msg->env->subject, sizeof(buf));
}
mutt_message_hook(NULL, msg, MUTT_SEND2_HOOK);
break;
+
case OP_COMPOSE_EDIT_REPLY_TO:
edit_address_list(HDR_REPLYTO, &msg->env->reply_to);
mutt_message_hook(NULL, msg, MUTT_SEND2_HOOK);
break;
+
case OP_COMPOSE_EDIT_FCC:
mutt_str_strfcpy(buf, fcc, sizeof(buf));
if (mutt_get_field(_("Fcc: "), buf, sizeof(buf), MUTT_FILE | MUTT_CLEAR) == 0)
}
mutt_message_hook(NULL, msg, MUTT_SEND2_HOOK);
break;
+
case OP_COMPOSE_EDIT_MESSAGE:
if (Editor && (mutt_str_strcmp("builtin", Editor) != 0) && !EditHeaders)
{
break;
}
/* fallthrough */
+
case OP_COMPOSE_EDIT_HEADERS:
if ((mutt_str_strcmp("builtin", Editor) != 0) &&
(op == OP_COMPOSE_EDIT_HEADERS || (op == OP_COMPOSE_EDIT_MESSAGE && EditHeaders)))
break;
}
compose_attach_swap(msg->content, actx->idx, menu->current - 1);
- menu->redraw = 1;
+ menu->redraw = REDRAW_INDEX;
menu->current--;
break;
case OP_COMPOSE_MOVE_DOWN:
- if (menu->current == actx->idxlen - 1)
+ if (menu->current == (actx->idxlen - 1))
{
mutt_error(_("Attachment is already at bottom"));
break;
break;
}
compose_attach_swap(msg->content, actx->idx, menu->current);
- menu->redraw = 1;
+ menu->redraw = REDRAW_INDEX;
menu->current++;
break;
char **files = NULL;
buf[0] = '\0';
- if (mutt_enter_fname_full(prompt, buf, sizeof(buf), false, true,
- &files, &numfiles, MUTT_SEL_MULTI) == -1 ||
- *buf == '\0')
+ if ((mutt_enter_fname_full(prompt, buf, sizeof(buf), false, true,
+ &files, &numfiles, MUTT_SEL_MULTI) == -1) ||
+ (*buf == '\0'))
{
break;
}
mutt_pretty_mailbox(buf, sizeof(buf));
}
- if (mutt_enter_fname(prompt, buf, sizeof(buf), 1) == -1 || (buf[0] == '\0'))
+ if ((mutt_enter_fname(prompt, buf, sizeof(buf), 1) == -1) || (buf[0] == '\0'))
break;
#ifdef USE_NNTP
case OP_COMPOSE_EDIT_ENCODING:
CHECK_COUNT;
mutt_str_strfcpy(buf, ENCODING(CURATTACH->content->encoding), sizeof(buf));
- if (mutt_get_field("Content-Transfer-Encoding: ", buf, sizeof(buf), 0) == 0 && (buf[0] != '\0'))
+ if (mutt_get_field("Content-Transfer-Encoding: ", buf, sizeof(buf), 0) == 0 &&
+ (buf[0] != '\0'))
{
int enc = mutt_check_encoding(buf);
if ((enc != ENC_OTHER) && (enc != ENC_UUENCODED))
break;
case OP_COMPOSE_SEND_MESSAGE:
-
/* Note: We don't invoke send2-hook here, since we want to leave
* users an opportunity to change settings from the ":" prompt.
*/
-
if (check_attachments(actx) != 0)
{
menu->redraw = REDRAW_FULL;
CHECK_COUNT;
mutt_str_strfcpy(buf, CURATTACH->content->filename, sizeof(buf));
mutt_pretty_mailbox(buf, sizeof(buf));
- if (mutt_get_field(_("Rename to: "), buf, sizeof(buf), MUTT_FILE) == 0 &&
+ if ((mutt_get_field(_("Rename to: "), buf, sizeof(buf), MUTT_FILE) == 0) &&
(buf[0] != '\0'))
{
struct stat st;
case OP_FILTER:
CHECK_COUNT;
mutt_pipe_attachment_list(actx, NULL, menu->tagprefix,
- CURATTACH->content, op == OP_FILTER);
+ CURATTACH->content, (op == OP_FILTER));
if (op == OP_FILTER) /* cte might have changed */
menu->redraw = menu->tagprefix ? REDRAW_FULL : REDRAW_CURRENT;
menu->redraw |= REDRAW_STATUS;
/* fallthrough */
case OP_COMPOSE_POSTPONE_MESSAGE:
-
if (check_attachments(actx) != 0)
{
menu->redraw = REDRAW_FULL;
break;
case OP_COMPOSE_WRITE_MESSAGE:
-
buf[0] = '\0';
if (Context)
{
}
if (actx->idxlen)
msg->content = actx->idx[0]->content;
- if (mutt_enter_fname(_("Write message to mailbox"), buf, sizeof(buf), 1) != -1 &&
+ if ((mutt_enter_fname(_("Write message to mailbox"), buf, sizeof(buf), 1) != -1) &&
(buf[0] != '\0'))
{
mutt_message(_("Writing message to %s ..."), buf);
#ifdef MIXMASTER
case OP_COMPOSE_MIX:
-
mix_make_chain(&msg->chain);
mutt_message_hook(NULL, msg, MUTT_SEND2_HOOK);
break;