{
mutt_check_traditional_pgp(tag ? NULL : CURHDR, &menu->redraw);
}
- ci_send_message(SENDFORWARD, NULL, NULL, Context, tag ? NULL : CURHDR);
+ ci_send_message(SEND_FORWARD, NULL, NULL, Context, tag ? NULL : CURHDR);
menu->redraw = REDRAW_FULL;
break;
{
mutt_check_traditional_pgp(tag ? NULL : CURHDR, &menu->redraw);
}
- ci_send_message(SENDREPLY | SENDGROUPREPLY, NULL, NULL, Context, tag ? NULL : CURHDR);
+ ci_send_message(SEND_REPLY | SEND_GROUP_REPLY, NULL, NULL, Context, tag ? NULL : CURHDR);
menu->redraw = REDRAW_FULL;
break;
{
mutt_check_traditional_pgp(tag ? NULL : CURHDR, &menu->redraw);
}
- ci_send_message(SENDREPLY | SENDLISTREPLY, NULL, NULL, Context, tag ? NULL : CURHDR);
+ ci_send_message(SEND_REPLY | SEND_LIST_REPLY, NULL, NULL, Context, tag ? NULL : CURHDR);
menu->redraw = REDRAW_FULL;
break;
if (!(WithCrypto & APPLICATION_PGP))
break;
CHECK_ATTACH;
- ci_send_message(SENDKEY, NULL, NULL, NULL, NULL);
+ ci_send_message(SEND_KEY, NULL, NULL, NULL, NULL);
menu->redraw = REDRAW_FULL;
break;
case OP_RECALL_MESSAGE:
CHECK_ATTACH;
- ci_send_message(SENDPOSTPONED, NULL, NULL, Context, NULL);
+ ci_send_message(SEND_POSTPONED, NULL, NULL, Context, NULL);
menu->redraw = REDRAW_FULL;
break;
break;
}
if (op == OP_POST)
- ci_send_message(SENDNEWS, NULL, NULL, Context, NULL);
+ ci_send_message(SEND_NEWS, NULL, NULL, Context, NULL);
else
{
CHECK_MSGCOUNT;
- ci_send_message((op == OP_FOLLOWUP ? SENDREPLY : SENDFORWARD) | SENDNEWS,
+ ci_send_message((op == OP_FOLLOWUP ? SEND_REPLY : SEND_FORWARD) | SEND_NEWS,
NULL, NULL, Context, tag ? NULL : CURHDR);
}
menu->redraw = REDRAW_FULL;
{
mutt_check_traditional_pgp(tag ? NULL : CURHDR, &menu->redraw);
}
- ci_send_message(SENDREPLY, NULL, NULL, Context, tag ? NULL : CURHDR);
+ ci_send_message(SEND_REPLY, NULL, NULL, Context, tag ? NULL : CURHDR);
menu->redraw = REDRAW_FULL;
break;
{
break;
}
- ci_send_message(SENDNEWS, NULL, NULL, extra->ctx, NULL);
+ ci_send_message(SEND_NEWS, NULL, NULL, extra->ctx, NULL);
pager_menu->redraw = REDRAW_FULL;
break;
break;
}
if (IsMsgAttach(extra))
- mutt_attach_forward(extra->fp, extra->hdr, extra->actx, extra->bdy, SENDNEWS);
+ mutt_attach_forward(extra->fp, extra->hdr, extra->actx, extra->bdy, SEND_NEWS);
else
- ci_send_message(SENDNEWS | SENDFORWARD, NULL, NULL, extra->ctx, extra->hdr);
+ ci_send_message(SEND_NEWS | SEND_FORWARD, NULL, NULL, extra->ctx, extra->hdr);
pager_menu->redraw = REDRAW_FULL;
break;
if (IsMsgAttach(extra))
{
mutt_attach_reply(extra->fp, extra->hdr, extra->actx, extra->bdy,
- SENDNEWS | SENDREPLY);
+ SEND_NEWS | SEND_REPLY);
}
else
- ci_send_message(SENDNEWS | SENDREPLY, NULL, NULL, extra->ctx, extra->hdr);
+ ci_send_message(SEND_NEWS | SEND_REPLY, NULL, NULL, extra->ctx, extra->hdr);
pager_menu->redraw = REDRAW_FULL;
break;
}
CHECK_MODE(IsHeader(extra) || IsMsgAttach(extra));
CHECK_ATTACH;
if (IsMsgAttach(extra))
- mutt_attach_reply(extra->fp, extra->hdr, extra->actx, extra->bdy, SENDREPLY);
+ mutt_attach_reply(extra->fp, extra->hdr, extra->actx, extra->bdy, SEND_REPLY);
else
- ci_send_message(SENDREPLY, NULL, NULL, extra->ctx, extra->hdr);
+ ci_send_message(SEND_REPLY, NULL, NULL, extra->ctx, extra->hdr);
pager_menu->redraw = REDRAW_FULL;
break;
case OP_RECALL_MESSAGE:
CHECK_MODE(IsHeader(extra) && !IsAttach(extra));
CHECK_ATTACH;
- ci_send_message(SENDPOSTPONED, NULL, NULL, extra->ctx, extra->hdr);
+ ci_send_message(SEND_POSTPONED, NULL, NULL, extra->ctx, extra->hdr);
pager_menu->redraw = REDRAW_FULL;
break;
if (IsMsgAttach(extra))
{
mutt_attach_reply(extra->fp, extra->hdr, extra->actx, extra->bdy,
- SENDREPLY | SENDGROUPREPLY);
+ SEND_REPLY | SEND_GROUP_REPLY);
}
else
{
- ci_send_message(SENDREPLY | SENDGROUPREPLY, NULL, NULL, extra->ctx,
+ ci_send_message(SEND_REPLY | SEND_GROUP_REPLY, NULL, NULL, extra->ctx,
extra->hdr);
}
pager_menu->redraw = REDRAW_FULL;
if (IsMsgAttach(extra))
{
mutt_attach_reply(extra->fp, extra->hdr, extra->actx, extra->bdy,
- SENDREPLY | SENDLISTREPLY);
+ SEND_REPLY | SEND_LIST_REPLY);
}
else
{
- ci_send_message(SENDREPLY | SENDLISTREPLY, NULL, NULL, extra->ctx,
+ ci_send_message(SEND_REPLY | SEND_LIST_REPLY, NULL, NULL, extra->ctx,
extra->hdr);
}
pager_menu->redraw = REDRAW_FULL;
if (IsMsgAttach(extra))
mutt_attach_forward(extra->fp, extra->hdr, extra->actx, extra->bdy, 0);
else
- ci_send_message(SENDFORWARD, NULL, NULL, extra->ctx, extra->hdr);
+ ci_send_message(SEND_FORWARD, NULL, NULL, extra->ctx, extra->hdr);
pager_menu->redraw = REDRAW_FULL;
break;
}
CHECK_MODE(IsHeader(extra));
CHECK_ATTACH;
- ci_send_message(SENDKEY, NULL, NULL, extra->ctx, extra->hdr);
+ ci_send_message(SEND_KEY, NULL, NULL, extra->ctx, extra->hdr);
pager_menu->redraw = REDRAW_FULL;
break;
/**
* edit_envelope - Edit Envelope fields
* @param en Envelope to edit
- * @param flags Flags, e.g. #SENDLISTREPLY
+ * @param flags Flags, e.g. #SEND_LIST_REPLY
* @retval 0 Success
* @retval -1 Failure
*/
return -1;
if (Askbcc && edit_address(&en->bcc, _("Bcc: ")) == -1)
return -1;
- if (ReplyWithXorig && (flags & (SENDREPLY | SENDLISTREPLY | SENDGROUPREPLY)) &&
+ if (ReplyWithXorig && (flags & (SEND_REPLY | SEND_LIST_REPLY | SEND_GROUP_REPLY)) &&
(edit_address(&en->from, "From: ") == -1))
{
return -1;
/* Exit now if we're setting up the default Cc list for list-reply
* (only set if Mail-Followup-To is present and honoured).
*/
- if (flags & SENDLISTREPLY)
+ if (flags & SEND_LIST_REPLY)
return 0;
if (!ReplySelf && mutt_addr_is_user(env->from))
struct Address *tmp = NULL;
int hmfupto = -1;
- if ((flags & (SENDLISTREPLY | SENDGROUPREPLY)) && in->mail_followup_to)
+ if ((flags & (SEND_LIST_REPLY | SEND_GROUP_REPLY)) && in->mail_followup_to)
{
char prompt[STRING];
snprintf(prompt, sizeof(prompt), _("Follow-up to %s%s?"),
return -1;
}
- if (flags & SENDLISTREPLY)
+ if (flags & SEND_LIST_REPLY)
{
tmp = find_mailing_lists(in->to, in->cc);
mutt_addr_append(&out->to, tmp, false);
mutt_addr_free(&tmp);
if (in->mail_followup_to && hmfupto == MUTT_YES &&
- default_to(&out->cc, in, flags & SENDLISTREPLY, hmfupto) == MUTT_ABORT)
+ default_to(&out->cc, in, flags & SEND_LIST_REPLY, hmfupto) == MUTT_ABORT)
{
return -1; /* abort */
}
}
else
{
- if (default_to(&out->to, in, flags & SENDGROUPREPLY, hmfupto) == MUTT_ABORT)
+ if (default_to(&out->to, in, flags & SEND_GROUP_REPLY, hmfupto) == MUTT_ABORT)
return -1; /* abort */
- if ((flags & SENDGROUPREPLY) && (!in->mail_followup_to || hmfupto != MUTT_YES))
+ if ((flags & SEND_GROUP_REPLY) && (!in->mail_followup_to || hmfupto != MUTT_YES))
{
/* if(!mutt_addr_is_user(in->to)) */
mutt_addr_append(&out->cc, in->to, true);
if (!curenv)
return -1;
- if (flags & SENDREPLY)
+ if (flags & SEND_REPLY)
{
#ifdef USE_NNTP
- if ((flags & SENDNEWS))
+ if ((flags & SEND_NEWS))
{
/* in case followup set Newsgroups: with Followup-To: if it present */
if (!env->newsgroups &&
else if (mutt_fetch_recips(env, curenv, flags) == -1)
return -1;
- if ((flags & SENDLISTREPLY) && !env->to)
+ if ((flags & SEND_LIST_REPLY) && !env->to)
{
mutt_error(_("No mailing lists found!"));
return -1;
mutt_make_misc_reply_headers(env, curenv);
make_reference_headers(tag ? NULL : curenv, env, ctx);
}
- else if (flags & SENDFORWARD)
+ else if (flags & SEND_FORWARD)
{
mutt_make_forward_subject(env, ctx, cur);
if (ForwardReferences)
int i;
struct Body *tmp = NULL;
- if (flags & SENDREPLY)
+ if (flags & SEND_REPLY)
{
i = query_quadoption(Include, _("Include message in reply?"));
if (i == MUTT_ABORT)
include_reply(ctx, cur, tempfp);
}
}
- else if (flags & SENDFORWARD)
+ else if (flags & SEND_FORWARD)
{
i = query_quadoption(MimeForward, _("Forward as attachment?"));
if (i == MUTT_YES)
else
return -1;
}
- /* if (WithCrypto && (flags & SENDKEY)) */
- else if (((WithCrypto & APPLICATION_PGP) != 0) && (flags & SENDKEY))
+ /* if (WithCrypto && (flags & SEND_KEY)) */
+ else if (((WithCrypto & APPLICATION_PGP) != 0) && (flags & SEND_KEY))
{
struct Body *b = NULL;
}
}
- return ci_send_message(SENDRESEND, msg, NULL, ctx, cur);
+ return ci_send_message(SEND_RESEND, msg, NULL, ctx, cur);
}
/**
/**
* ci_send_message - Send an email
- * @param flags send mode, e.g. #SENDRESEND
+ * @param flags send mode, e.g. #SEND_RESEND
* @param msg template to use for new message
* @param tempfile file specified by -i or -H
* @param ctx current mailbox
int rc = -1;
#ifdef USE_NNTP
- if (flags & SENDNEWS)
+ if (flags & SEND_NEWS)
OptNewsSend = true;
else
OptNewsSend = false;
return rc;
if (i == MUTT_YES)
- flags |= SENDPOSTPONED;
+ flags |= SEND_POSTPONED;
}
- if (flags & SENDPOSTPONED)
+ if (flags & SEND_POSTPONED)
{
if (WithCrypto & APPLICATION_PGP)
pgp_signas = mutt_str_strdup(PgpSignAs);
{
msg = mutt_header_new();
- if (flags == SENDPOSTPONED)
+ if (flags == SEND_POSTPONED)
{
flags = mutt_get_postponed(ctx, msg, &cur, fcc, sizeof(fcc));
if (flags < 0)
*/
if (msg->env->newsgroups)
{
- flags |= SENDNEWS;
+ flags |= SEND_NEWS;
OptNewsSend = true;
}
else
{
- flags &= ~SENDNEWS;
+ flags &= ~SEND_NEWS;
OptNewsSend = false;
}
#endif
}
- if (flags & (SENDPOSTPONED | SENDRESEND))
+ if (flags & (SEND_POSTPONED | SEND_RESEND))
{
tempfp = mutt_file_fopen(msg->content->filename, "a+");
if (!tempfp)
}
/* Parse and use an eventual list-post header */
- if ((flags & SENDLISTREPLY) && cur && cur->env && cur->env->list_post)
+ if ((flags & SEND_LIST_REPLY) && cur && cur->env && cur->env->list_post)
{
/* Use any list-post header as a template */
url_parse_mailto(msg->env, NULL, cur->env->list_post);
mutt_addr_free(&msg->env->from);
}
- if (!(flags & (SENDKEY | SENDPOSTPONED | SENDRESEND)))
+ if (!(flags & (SEND_KEY | SEND_POSTPONED | SEND_RESEND)))
{
- /* When SENDDRAFTFILE is set, the caller has already
+ /* When SEND_DRAFT_FILE is set, the caller has already
* created the "parent" body structure.
*/
- if (!(flags & SENDDRAFTFILE))
+ if (!(flags & SEND_DRAFT_FILE))
{
pbody = mutt_body_new();
pbody->next = msg->content; /* don't kill command-line attachments */
}
/* this is handled here so that the user can match ~f in send-hook */
- if (cur && ReverseName && !(flags & (SENDPOSTPONED | SENDRESEND)))
+ if (cur && ReverseName && !(flags & (SEND_POSTPONED | SEND_RESEND)))
{
/* we shouldn't have to worry about freeing `msg->env->from' before
* setting it here since this code will only execute when doing some
}
msg->env->from = set_reverse_name(cur->env);
}
- if (cur && ReplyWithXorig && !(flags & (SENDPOSTPONED | SENDRESEND | SENDFORWARD)))
+ if (cur && ReplyWithXorig && !(flags & (SEND_POSTPONED | SEND_RESEND | SEND_FORWARD)))
{
/* We shouldn't have to worry about freeing `msg->env->from' before
* setting it here since this code will only execute when doing some
}
}
- if (!(flags & (SENDPOSTPONED | SENDRESEND)) && !((flags & SENDDRAFTFILE) && ResumeDraftFiles))
+ if (!(flags & (SEND_POSTPONED | SEND_RESEND)) && !((flags & SEND_DRAFT_FILE) && ResumeDraftFiles))
{
- if ((flags & (SENDREPLY | SENDFORWARD)) && ctx &&
+ if ((flags & (SEND_REPLY | SEND_FORWARD)) && ctx &&
envelope_defaults(msg->env, ctx, cur, flags) == -1)
{
goto cleanup;
/* Expand aliases and remove duplicates/crossrefs */
mutt_expand_aliases_env(msg->env);
- if (flags & SENDREPLY)
+ if (flags & SEND_REPLY)
mutt_fix_reply_recipients(msg->env);
#ifdef USE_NNTP
- if ((flags & SENDNEWS) && ctx && ctx->magic == MUTT_NNTP && !msg->env->newsgroups)
+ if ((flags & SEND_NEWS) && ctx && ctx->magic == MUTT_NNTP && !msg->env->newsgroups)
msg->env->newsgroups = mutt_str_strdup(((struct NntpData *) ctx->data)->group);
#endif
- if (!(flags & (SENDMAILX | SENDBATCH)) && !(Autoedit && EditHeaders) &&
- !((flags & SENDREPLY) && FastReply))
+ if (!(flags & (SEND_MAILX | SEND_BATCH)) && !(Autoedit && EditHeaders) &&
+ !((flags & SEND_REPLY) && FastReply))
{
if (edit_envelope(msg->env, flags) == -1)
goto cleanup;
killfrom = true;
}
- if ((flags & SENDREPLY) && cur)
+ if ((flags & SEND_REPLY) && cur)
{
/* change setting based upon message we are replying to */
mutt_message_hook(ctx, cur, MUTT_REPLY_HOOK);
*/
msg->replied = false;
- if (!(flags & SENDKEY))
+ if (!(flags & SEND_KEY))
{
if (TextFlowed && msg->content->type == TYPE_TEXT &&
(mutt_str_strcasecmp(msg->content->subtype, "plain") == 0))
if (killfrom)
{
mutt_addr_free(&msg->env->from);
- if (UseFrom && !(flags & (SENDPOSTPONED | SENDRESEND)))
+ if (UseFrom && !(flags & (SEND_POSTPONED | SEND_RESEND)))
msg->env->from = mutt_default_from();
killfrom = false;
}
if (Hdrs)
process_user_header(msg->env);
- if (flags & SENDBATCH)
+ if (flags & SEND_BATCH)
mutt_file_copy_stream(stdin, tempfp);
- if (SigOnTop && !(flags & (SENDMAILX | SENDKEY | SENDBATCH)) && Editor &&
+ if (SigOnTop && !(flags & (SEND_MAILX | SEND_KEY | SEND_BATCH)) && Editor &&
(mutt_str_strcmp(Editor, "builtin") != 0))
{
append_signature(tempfp);
}
/* include replies/forwarded messages, unless we are given a template */
- if (!tempfile && (ctx || !(flags & (SENDREPLY | SENDFORWARD))) &&
+ if (!tempfile && (ctx || !(flags & (SEND_REPLY | SEND_FORWARD))) &&
generate_body(tempfp, msg, flags, ctx, cur) == -1)
{
goto cleanup;
}
- if (!SigOnTop && !(flags & (SENDMAILX | SENDKEY | SENDBATCH)) && Editor &&
+ if (!SigOnTop && !(flags & (SEND_MAILX | SEND_KEY | SEND_BATCH)) && Editor &&
(mutt_str_strcmp(Editor, "builtin") != 0))
{
append_signature(tempfp);
/* wait until now to set the real name portion of our return address so
that $realname can be set in a send-hook */
- if (msg->env->from && !msg->env->from->personal && !(flags & (SENDRESEND | SENDPOSTPONED)))
+ if (msg->env->from && !msg->env->from->personal && !(flags & (SEND_RESEND | SEND_POSTPONED)))
msg->env->from->personal = mutt_str_strdup(Realname);
- if (!(((WithCrypto & APPLICATION_PGP) != 0) && (flags & SENDKEY)))
+ if (!(((WithCrypto & APPLICATION_PGP) != 0) && (flags & SEND_KEY)))
mutt_file_fclose(&tempfp);
- if (flags & SENDMAILX)
+ if (flags & SEND_MAILX)
{
if (mutt_builtin_editor(msg->content->filename, msg, cur) == -1)
goto cleanup;
}
- else if (!(flags & SENDBATCH))
+ else if (!(flags & SEND_BATCH))
{
struct stat st;
time_t mtime = mutt_file_decrease_mtime(msg->content->filename, NULL);
* setting of $forward_edit because the user probably needs to add the
* recipients.
*/
- if (!(flags & SENDKEY) &&
- ((flags & SENDFORWARD) == 0 || (EditHeaders && Autoedit) ||
+ if (!(flags & SEND_KEY) &&
+ ((flags & SEND_FORWARD) == 0 || (EditHeaders && Autoedit) ||
query_quadoption(ForwardEdit, _("Edit forwarded message?")) == MUTT_YES))
{
/* If the this isn't a text message, look for a mailcap edit command */
mutt_message_hook(NULL, msg, MUTT_SEND2_HOOK);
}
- if (!(flags & (SENDPOSTPONED | SENDFORWARD | SENDKEY | SENDRESEND | SENDDRAFTFILE)))
+ if (!(flags & (SEND_POSTPONED | SEND_FORWARD | SEND_KEY | SEND_RESEND | SEND_DRAFT_FILE)))
{
if (stat(msg->content->filename, &st) == 0)
{
* settings can be configured with send2-hook and $edit_headers.
*/
if ((WithCrypto != 0) && (msg->security == 0) &&
- !(flags & (SENDBATCH | SENDMAILX | SENDPOSTPONED | SENDRESEND)))
+ !(flags & (SEND_BATCH | SEND_MAILX | SEND_POSTPONED | SEND_RESEND)))
{
if (CryptAutosign)
msg->security |= SIGN;
/* specify a default fcc. if we are in batchmode, only save a copy of
* the message if the value of $copy is yes or ask-yes */
- if (!fcc[0] && !(flags & (SENDPOSTPONEDFCC)) && (!(flags & SENDBATCH) || (Copy & 0x1)))
+ if (!fcc[0] && !(flags & (SEND_POSTPONED_FCC)) && (!(flags & SEND_BATCH) || (Copy & 0x1)))
{
/* set the default FCC */
if (!msg->env->from)
mutt_update_encoding(msg->content);
- if (!(flags & (SENDMAILX | SENDBATCH)))
+ if (!(flags & (SEND_MAILX | SEND_BATCH)))
{
main_loop:
fcc_error = false; /* reset value since we may have failed before */
mutt_pretty_mailbox(fcc, sizeof(fcc));
i = mutt_compose_menu(msg, fcc, sizeof(fcc), cur,
- ((flags & SENDNOFREEHEADER) ? MUTT_COMPOSE_NOFREEHEADER : 0));
+ ((flags & SEND_NO_FREE_HEADER) ? MUTT_COMPOSE_NOFREEHEADER : 0));
if (i == -1)
{
/* abort */
#ifdef USE_NNTP
- if (flags & SENDNEWS)
+ if (flags & SEND_NEWS)
mutt_message(_("Article not posted."));
else
#endif
mutt_env_to_intl(msg->env, NULL, NULL); /* Handle bad IDNAs the next time. */
if (!Postponed || mutt_write_fcc(NONULL(Postponed), msg,
- (cur && (flags & SENDREPLY)) ? cur->env->message_id : NULL,
+ (cur && (flags & SEND_REPLY)) ? cur->env->message_id : NULL,
1, fcc, NULL) < 0)
{
msg->content = mutt_remove_multipart(msg->content);
}
#ifdef USE_NNTP
- if (!(flags & SENDNEWS))
+ if (!(flags & SEND_NEWS))
#endif
if ((mutt_addr_has_recips(msg->env->to) == 0) &&
(mutt_addr_has_recips(msg->env->cc) == 0) &&
(mutt_addr_has_recips(msg->env->bcc) == 0))
{
- if (!(flags & SENDBATCH))
+ if (!(flags & SEND_BATCH))
{
mutt_error(_("No recipients specified."));
goto main_loop;
{
mutt_error(_("Bad IDN in '%s': '%s'"), tag, err);
FREE(&err);
- if (!(flags & SENDBATCH))
+ if (!(flags & SEND_BATCH))
goto main_loop;
else
goto cleanup;
}
- if (!msg->env->subject && !(flags & SENDBATCH) &&
+ if (!msg->env->subject && !(flags & SEND_BATCH) &&
(i = query_quadoption(AbortNosubject, _("No subject, abort sending?"))) != MUTT_NO)
{
/* if the abort is automatic, print an error message */
goto main_loop;
}
#ifdef USE_NNTP
- if ((flags & SENDNEWS) && !msg->env->subject)
+ if ((flags & SEND_NEWS) && !msg->env->subject)
{
mutt_error(_("No subject specified."));
goto main_loop;
}
- if ((flags & SENDNEWS) && !msg->env->newsgroups)
+ if ((flags & SEND_NEWS) && !msg->env->newsgroups)
{
mutt_error(_("No newsgroup specified."));
goto main_loop;
}
#endif
- if (!(flags & SENDBATCH) && (AbortNoattach != MUTT_NO) &&
+ if (!(flags & SEND_BATCH) && (AbortNoattach != MUTT_NO) &&
!msg->content->next && (msg->content->type == TYPE_TEXT) &&
(mutt_str_strcasecmp(msg->content->subtype, "plain") == 0) &&
search_attach_keyword(msg->content->filename) &&
free_clear_content = true;
}
- if (!OptNoCurses && !(flags & SENDMAILX))
+ if (!OptNoCurses && !(flags & SEND_MAILX))
mutt_message(_("Sending message..."));
mutt_prepare_envelope(msg->env, true);
*/
#ifdef USE_IMAP
- if ((flags & SENDBATCH) && fcc[0] && mx_is_imap(fcc))
+ if ((flags & SEND_BATCH) && fcc[0] && mx_is_imap(fcc))
fcc[0] = '\0';
#endif
*/
if (fcc_error || (i = send_message(msg)) < 0)
{
- if (!(flags & SENDBATCH))
+ if (!(flags & SEND_BATCH))
{
if (!WithCrypto)
;
goto cleanup;
}
}
- else if (!OptNoCurses && !(flags & SENDMAILX))
+ else if (!OptNoCurses && !(flags & SEND_MAILX))
{
mutt_message(i != 0 ? _("Sending in background.") :
- (flags & SENDNEWS) ? _("Article posted.") : /* USE_NNTP */
+ (flags & SEND_NEWS) ? _("Article posted.") : /* USE_NNTP */
_("Mail sent."));
#ifdef USE_NOTMUCH
if (NmRecord)
/* set 'replied' flag only if the user didn't change/remove
In-Reply-To: and References: headers during edit */
- if (flags & SENDREPLY)
+ if (flags & SEND_REPLY)
{
if (cur && ctx)
mutt_set_flag(ctx, cur, MUTT_REPLIED, is_reply(cur, msg));
- else if (!(flags & SENDPOSTPONED) && ctx && ctx->tagged)
+ else if (!(flags & SEND_POSTPONED) && ctx && ctx->tagged)
{
for (i = 0; i < ctx->msgcount; i++)
{
cleanup:
- if (flags & SENDPOSTPONED)
+ if (flags & SEND_POSTPONED)
{
if (WithCrypto & APPLICATION_PGP)
{
}
mutt_file_fclose(&tempfp);
- if (!(flags & SENDNOFREEHEADER))
+ if (!(flags & SEND_NO_FREE_HEADER))
mutt_header_free(&msg);
FREE(&finalpath);