else if (cur->security & SIGN)
{
/* find out whether or not the verify signature */
- if (query_quadoption(OPT_VERIFYSIG, _("Verify PGP signature?")) == MUTT_YES)
+ if (query_quadoption(OPT_VERIFY_SIG, _("Verify PGP signature?")) == MUTT_YES)
{
cmflags |= MUTT_CM_VERIFY;
}
CHECK_ATTACH;
if (op != OP_FOLLOWUP || !CURHDR->env->followup_to ||
(mutt_strcasecmp(CURHDR->env->followup_to, "poster") != 0) ||
- query_quadoption(OPT_FOLLOWUPTOPOSTER,
+ query_quadoption(OPT_FOLLOW_UP_TO_POSTER,
_("Reply by mail as poster prefers?")) != MUTT_YES)
{
if (Context && Context->magic == MUTT_NNTP &&
- !((struct NntpData *) Context->data)->allowed && query_quadoption(OPT_TOMODERATED, _("Posting to this group not allowed, may be moderated. Continue?")) != MUTT_YES)
+ !((struct NntpData *) Context->data)->allowed && query_quadoption(OPT_TO_MODERATED, _("Posting to this group not allowed, may be moderated. Continue?")) != MUTT_YES)
break;
if (op == OP_POST)
ci_send_message(SENDNEWS, NULL, NULL, Context, NULL);
/* bit vector for the yes/no/ask variable type */
#ifdef MAIN_C
-unsigned char QuadOptions[(OPT_MAX * 2 + 7) / 8];
+unsigned char QuadOptions[(OPT_QUAD_MAX * 2 + 7) / 8];
#else
extern unsigned char QuadOptions[];
#endif
if (option(OPT_SSL_FORCE_TLS))
rc = MUTT_YES;
- else if ((rc = query_quadoption(OPT_SSLSTARTTLS,
+ else if ((rc = query_quadoption(OPT_SSL_START_TLS,
_("Secure connection with TLS?"))) == MUTT_ABORT)
goto err_close_conn;
if (rc == MUTT_YES)
** verification (only supported by the GPGME backend).
*/
{ "pgp_verify_sig", DT_SYN, R_NONE, UL "crypt_verify_sig", 0 },
- { "crypt_verify_sig", DT_QUAD, R_NONE, OPT_VERIFYSIG, MUTT_YES },
+ { "crypt_verify_sig", DT_QUAD, R_NONE, OPT_VERIFY_SIG, MUTT_YES },
/*
** .pp
** If \fI``yes''\fP, always attempt to verify PGP or S/MIME signatures.
** \fBNote:\fP this variable has no effect when the $$autoedit
** variable is \fIset\fP.
*/
- { "fcc_attach", DT_QUAD, R_NONE, OPT_FCCATTACH, MUTT_YES },
+ { "fcc_attach", DT_QUAD, R_NONE, OPT_FCC_ATTACH, MUTT_YES },
/*
** .pp
** This variable controls whether or not attachments on outgoing messages
** of the same email for you.
*/
#ifdef USE_NNTP
- { "followup_to_poster", DT_QUAD, R_NONE, OPT_FOLLOWUPTOPOSTER, MUTT_ASKYES },
+ { "followup_to_poster", DT_QUAD, R_NONE, OPT_FOLLOW_UP_TO_POSTER, MUTT_ASKYES },
/*
** .pp
** If this variable is \fIset\fP and the keyword "poster" is present in
{ "forw_decrypt", DT_SYN, R_NONE, UL "forward_decrypt", 0 },
/*
*/
- { "forward_edit", DT_QUAD, R_NONE, OPT_FORWEDIT, MUTT_YES },
+ { "forward_edit", DT_QUAD, R_NONE, OPT_FORW_EDIT, MUTT_YES },
/*
** .pp
** This quadoption controls whether or not the user is automatically
** If \fIunset\fP, Mutt will render all MIME parts it can
** properly transform to plain text.
*/
- { "honor_followup_to", DT_QUAD, R_NONE, OPT_MFUPTO, MUTT_YES },
+ { "honor_followup_to", DT_QUAD, R_NONE, OPT_MF_UP_TO, MUTT_YES },
/*
** .pp
** This variable controls whether or not a Mail-Followup-To header is
** .pp
** The name of the MH sequence used for unseen messages.
*/
- { "mime_forward", DT_QUAD, R_NONE, OPT_MIMEFWD, MUTT_NO },
+ { "mime_forward", DT_QUAD, R_NONE, OPT_MIME_FWD, MUTT_NO },
/*
** .pp
** When \fIset\fP, the message you are forwarding will be attached as a
{ "mime_fwd", DT_SYN, R_NONE, UL "mime_forward", 0 },
/*
*/
- { "mime_forward_rest", DT_QUAD, R_NONE, OPT_MIMEFWDREST, MUTT_YES },
+ { "mime_forward_rest", DT_QUAD, R_NONE, OPT_MIME_FWD_REST, MUTT_YES },
/*
** .pp
** When forwarding multiple attachments of a MIME message from the attachment
** in the key selection menu and a few other places.
** (PGP only)
*/
- { "pgp_mime_auto", DT_QUAD, R_NONE, OPT_PGPMIMEAUTO, MUTT_ASKYES },
+ { "pgp_mime_auto", DT_QUAD, R_NONE, OPT_PGP_MIME_AUTO, MUTT_ASKYES },
/*
** .pp
** This option controls whether Mutt will prompt you for
** This variable configures how often (in seconds) mutt should look for
** new mail in the currently selected mailbox if it is a POP mailbox.
*/
- { "pop_delete", DT_QUAD, R_NONE, OPT_POPDELETE, MUTT_ASKNO },
+ { "pop_delete", DT_QUAD, R_NONE, OPT_POP_DELETE, MUTT_ASKNO },
/*
** .pp
** If \fIset\fP, Mutt will delete successfully downloaded messages from the POP
** fairly secure machine, because the superuser can read your muttrc
** even if you are the only one who can read the file.
*/
- { "pop_reconnect", DT_QUAD, R_NONE, OPT_POPRECONNECT, MUTT_ASKYES },
+ { "pop_reconnect", DT_QUAD, R_NONE, OPT_POP_RECONNECT, MUTT_ASKYES },
/*
** .pp
** Controls whether or not Mutt will try to reconnect to the POP server if
/*
*/
#ifdef USE_NNTP
- { "post_moderated", DT_QUAD, R_NONE, OPT_TOMODERATED, MUTT_ASKYES },
+ { "post_moderated", DT_QUAD, R_NONE, OPT_TO_MODERATED, MUTT_ASKYES },
/*
** .pp
** If set to \fIyes\fP, Mutt will post article to newsgroup that have
** .pp
** Also see the ``$alternates'' command.
*/
- { "reply_to", DT_QUAD, R_NONE, OPT_REPLYTO, MUTT_ASKYES },
+ { "reply_to", DT_QUAD, R_NONE, OPT_REPLY_TO, MUTT_ASKYES },
/*
** .pp
** If \fIset\fP, when replying to a message, Mutt will use the address listed
** the default from the GNUTLS library.
*/
# endif /* USE_SSL_GNUTLS */
- { "ssl_starttls", DT_QUAD, R_NONE, OPT_SSLSTARTTLS, MUTT_YES },
+ { "ssl_starttls", DT_QUAD, R_NONE, OPT_SSL_START_TLS, MUTT_YES },
/*
** .pp
** If \fIset\fP (the default), mutt will attempt to use \fCSTARTTLS\fP on servers
** When \fIset\fP, Mutt will collapse all threads when entering a folder.
*/
/*--*/
- { "pgp_encrypt_self", DT_QUAD, R_NONE, OPT_PGPENCRYPTSELF, MUTT_NO },
- { "smime_encrypt_self", DT_QUAD, R_NONE, OPT_SMIMEENCRYPTSELF, MUTT_NO },
+ { "pgp_encrypt_self", DT_QUAD, R_NONE, OPT_PGP_ENCRYPT_SELF, MUTT_NO },
+ { "smime_encrypt_self", DT_QUAD, R_NONE, OPT_SMIME_ENCRYPT_SELF, MUTT_NO },
{ NULL, 0, 0, 0, 0 },
};
OPT_BOUNCE,
OPT_COPY,
OPT_DELETE,
- OPT_FORWEDIT,
- OPT_FCCATTACH,
+ OPT_FORW_EDIT,
+ OPT_FCC_ATTACH,
OPT_INCLUDE,
- OPT_MFUPTO,
- OPT_MIMEFWD,
- OPT_MIMEFWDREST,
+ OPT_MF_UP_TO,
+ OPT_MIME_FWD,
+ OPT_MIME_FWD_REST,
OPT_MOVE,
- OPT_PGPMIMEAUTO, /* ask to revert to PGP/MIME when inline fails */
- OPT_SMIMEENCRYPTSELF,
- OPT_PGPENCRYPTSELF,
+ OPT_PGP_MIME_AUTO, /* ask to revert to PGP/MIME when inline fails */
+ OPT_SMIME_ENCRYPT_SELF,
+ OPT_PGP_ENCRYPT_SELF,
#ifdef USE_POP
- OPT_POPDELETE,
- OPT_POPRECONNECT,
+ OPT_POP_DELETE,
+ OPT_POP_RECONNECT,
#endif
OPT_POSTPONE,
OPT_PRINT,
OPT_QUIT,
- OPT_REPLYTO,
+ OPT_REPLY_TO,
OPT_RECALL,
#ifdef USE_SSL
- OPT_SSLSTARTTLS,
+ OPT_SSL_START_TLS,
#endif
OPT_SUBJECT,
- OPT_VERIFYSIG, /* verify PGP signatures */
+ OPT_VERIFY_SIG, /* verify PGP signatures */
#ifdef USE_NNTP
- OPT_TOMODERATED,
+ OPT_TO_MODERATED,
OPT_CATCHUP,
- OPT_FOLLOWUPTOPOSTER,
+ OPT_FOLLOW_UP_TO_POSTER,
#endif
OPT_ATTACH, /* forgotten attachment detector */
/* THIS MUST BE THE LAST VALUE. */
- OPT_MAX
+ OPT_QUAD_MAX,
};
/* flags to ci_send_message() */
if ((msg->content->type != TYPETEXT) ||
(ascii_strcasecmp(msg->content->subtype, "plain") != 0))
{
- if (query_quadoption(OPT_PGPMIMEAUTO,
+ if (query_quadoption(OPT_PGP_MIME_AUTO,
_("Inline PGP can't be used with attachments. "
"Revert to PGP/MIME?")) != MUTT_YES)
{
/* otherwise inline won't work...ask for revert */
if (query_quadoption(
- OPT_PGPMIMEAUTO,
+ OPT_PGP_MIME_AUTO,
_("Message can't be sent inline. Revert to using PGP/MIME?")) != MUTT_YES)
{
mutt_error(_("Mail not sent."));
return -1;
}
unset_option(OPT_PGP_CHECK_TRUST);
- if (option(OPT_PGP_SELF_ENCRYPT) || (quadoption(OPT_PGPENCRYPTSELF) == MUTT_YES))
+ if (option(OPT_PGP_SELF_ENCRYPT) || (quadoption(OPT_PGP_ENCRYPT_SELF) == MUTT_YES))
self_encrypt = PgpSelfEncryptAs;
}
if ((WithCrypto & APPLICATION_SMIME) && (msg->security & APPLICATION_SMIME))
rfc822_free_address(&adrlist);
return -1;
}
- if (option(OPT_SMIME_SELF_ENCRYPT) || (quadoption(OPT_SMIMEENCRYPTSELF) == MUTT_YES))
+ if (option(OPT_SMIME_SELF_ENCRYPT) || (quadoption(OPT_SMIME_ENCRYPT_SELF) == MUTT_YES))
self_encrypt = SmimeSelfEncryptAs;
}
}
if (nserv->use_tls == 0)
nserv->use_tls =
option(OPT_SSL_FORCE_TLS) ||
- query_quadoption(OPT_SSLSTARTTLS,
+ query_quadoption(OPT_SSL_START_TLS,
_("Secure connection with TLS?")) == MUTT_YES ?
2 :
1;
CHECK_MODE(IsHeader(extra) && !IsAttach(extra));
CHECK_ATTACH;
if (extra->ctx && extra->ctx->magic == MUTT_NNTP &&
- !((struct NntpData *) extra->ctx->data)->allowed && query_quadoption(OPT_TOMODERATED, _("Posting to this group not allowed, may be moderated. Continue?")) != MUTT_YES)
+ !((struct NntpData *) extra->ctx->data)->allowed && query_quadoption(OPT_TO_MODERATED, _("Posting to this group not allowed, may be moderated. Continue?")) != MUTT_YES)
break;
ci_send_message(SENDNEWS, NULL, NULL, extra->ctx, NULL);
pager_menu->redraw = REDRAW_FULL;
CHECK_MODE(IsHeader(extra) || IsMsgAttach(extra));
CHECK_ATTACH;
if (extra->ctx && extra->ctx->magic == MUTT_NNTP &&
- !((struct NntpData *) extra->ctx->data)->allowed && query_quadoption(OPT_TOMODERATED, _("Posting to this group not allowed, may be moderated. Continue?")) != MUTT_YES)
+ !((struct NntpData *) extra->ctx->data)->allowed && query_quadoption(OPT_TO_MODERATED, _("Posting to this group not allowed, may be moderated. Continue?")) != MUTT_YES)
break;
if (IsMsgAttach(extra))
mutt_attach_forward(extra->fp, extra->hdr, extra->idx, extra->idxlen,
followup_to = extra->hdr->env->followup_to;
if (!followup_to || (mutt_strcasecmp(followup_to, "poster") != 0) ||
- query_quadoption(OPT_FOLLOWUPTOPOSTER,
+ query_quadoption(OPT_FOLLOW_UP_TO_POSTER,
_("Reply by mail as poster prefers?")) != MUTT_YES)
{
if (extra->ctx && extra->ctx->magic == MUTT_NNTP &&
- !((struct NntpData *) extra->ctx->data)->allowed && query_quadoption(OPT_TOMODERATED, _("Posting to this group not allowed, may be moderated. Continue?")) != MUTT_YES)
+ !((struct NntpData *) extra->ctx->data)->allowed && query_quadoption(OPT_TO_MODERATED, _("Posting to this group not allowed, may be moderated. Continue?")) != MUTT_YES)
break;
if (IsMsgAttach(extra))
mutt_attach_reply(extra->fp, extra->hdr, extra->idx, extra->idxlen,
goto finish;
delanswer =
- query_quadoption(OPT_POPDELETE, _("Delete messages from server?"));
+ query_quadoption(OPT_POP_DELETE, _("Delete messages from server?"));
snprintf(msgbuf, sizeof(msgbuf), _("Reading new messages (%d bytes)..."), bytes);
mutt_message("%s", msgbuf);
pop_data->use_stls = 2;
if (pop_data->use_stls == 0)
{
- ret = query_quadoption(OPT_SSLSTARTTLS, _("Secure connection with TLS?"));
+ ret = query_quadoption(OPT_SSL_START_TLS, _("Secure connection with TLS?"));
if (ret == MUTT_ABORT)
return -2;
pop_data->use_stls = 1;
if (ret < -1)
return -1;
- if (query_quadoption(OPT_POPRECONNECT,
+ if (query_quadoption(OPT_POP_RECONNECT,
_("Connection lost. Reconnect to POP server?")) != MUTT_YES)
return -1;
}
if (!idx[menu->current]->content->hdr->env->followup_to ||
(mutt_strcasecmp(idx[menu->current]->content->hdr->env->followup_to, "poster") != 0) ||
- query_quadoption(OPT_FOLLOWUPTOPOSTER,
+ query_quadoption(OPT_FOLLOW_UP_TO_POSTER,
_("Reply by mail as poster prefers?")) != MUTT_YES)
{
mutt_attach_reply(fp, hdr, idx, idxlen,
*/
if ((!cur || mutt_can_decode(cur)) &&
- (rc = query_quadoption(OPT_MIMEFWD, _("Forward as attachments?"))) == MUTT_YES)
+ (rc = query_quadoption(OPT_MIME_FWD, _("Forward as attachments?"))) == MUTT_YES)
mime_fwd_all = true;
else if (rc == -1)
goto bail;
if (!mime_fwd_all && !cur && (nattach > 1) && !check_can_decode(idx, idxlen, cur))
{
- if ((rc = query_quadoption(OPT_MIMEFWDREST,
+ if ((rc = query_quadoption(OPT_MIME_FWD_REST,
_("Can't decode all tagged attachments. "
"MIME-forward the others?"))) == MUTT_ABORT)
goto bail;
tmpbody[0] = '\0';
- if ((rc = query_quadoption(OPT_MIMEFWD, _("Forward MIME encapsulated?"))) == MUTT_NO)
+ if ((rc = query_quadoption(OPT_MIME_FWD, _("Forward MIME encapsulated?"))) == MUTT_NO)
{
/* no MIME encapsulation */
if (nattach > 1 && !check_can_decode(idx, idxlen, cur))
{
- if ((rc = query_quadoption(OPT_MIMEFWDREST,
+ if ((rc = query_quadoption(OPT_MIME_FWD_REST,
_("Can't decode all tagged attachments. "
"MIME-encapsulate the others?"))) == MUTT_ABORT)
return;
rfc822_append(to, env->from, 0);
}
else if (!(addrcmp(env->from, env->reply_to) && !env->reply_to->next) &&
- quadoption(OPT_REPLYTO) != MUTT_YES)
+ quadoption(OPT_REPLY_TO) != MUTT_YES)
{
/* There are quite a few mailing lists which set the Reply-To:
* header field to the list address, which makes it quite impossible
If she says no, mutt will reply to the from header's address instead. */
snprintf(prompt, sizeof(prompt), _("Reply to %s%s?"),
env->reply_to->mailbox, env->reply_to->next ? ",..." : "");
- switch (query_quadoption(OPT_REPLYTO, prompt))
+ switch (query_quadoption(OPT_REPLY_TO, prompt))
{
case MUTT_YES:
rfc822_append(to, env->reply_to, 0);
in->mail_followup_to->mailbox,
in->mail_followup_to->next ? ",..." : "");
- if ((hmfupto = query_quadoption(OPT_MFUPTO, prompt)) == MUTT_ABORT)
+ if ((hmfupto = query_quadoption(OPT_MF_UP_TO, prompt)) == MUTT_ABORT)
return -1;
}
}
else if (flags & SENDFORWARD)
{
- if ((i = query_quadoption(OPT_MIMEFWD, _("Forward as attachment?"))) == MUTT_YES)
+ if ((i = query_quadoption(OPT_MIME_FWD, _("Forward as attachment?"))) == MUTT_YES)
{
struct Body *last = msg->content;
*/
if (!(flags & SENDKEY) &&
((flags & SENDFORWARD) == 0 || (option(OPT_EDIT_HDRS) && option(OPT_AUTO_EDIT)) ||
- query_quadoption(OPT_FORWEDIT, _("Edit forwarded message?")) == MUTT_YES))
+ query_quadoption(OPT_FORW_EDIT, _("Edit forwarded message?")) == MUTT_YES))
{
/* If the this isn't a text message, look for a mailcap edit command */
if (mutt_needs_mailcap(msg->content))
msg->content = clear_content;
/* check to see if the user wants copies of all attachments */
- if (query_quadoption(OPT_FCCATTACH, _("Save attachments in Fcc?")) != MUTT_YES &&
+ if (query_quadoption(OPT_FCC_ATTACH, _("Save attachments in Fcc?")) != MUTT_YES &&
msg->content->type == TYPEMULTIPART)
{
if (WithCrypto && (msg->security & (ENCRYPT | SIGN)) &&
if (conn->account.flags & MUTT_ACCT_USER)
Esmtp = 1;
#ifdef USE_SSL
- if (option(OPT_SSL_FORCE_TLS) || quadoption(OPT_SSLSTARTTLS) != MUTT_NO)
+ if (option(OPT_SSL_FORCE_TLS) || quadoption(OPT_SSL_START_TLS) != MUTT_NO)
Esmtp = 1;
#endif
}
else if (option(OPT_SSL_FORCE_TLS))
rc = MUTT_YES;
else if (mutt_bit_isset(Capabilities, STARTTLS) &&
- (rc = query_quadoption(OPT_SSLSTARTTLS,
+ (rc = query_quadoption(OPT_SSL_START_TLS,
_("Secure connection with TLS?"))) == MUTT_ABORT)
return rc;