summaryrefslogtreecommitdiffstats
path: root/crypt.c
diff options
context:
space:
mode:
authorDerek Martin <code@pizzashack.org>2016-05-09 14:06:54 -0700
committerDerek Martin <code@pizzashack.org>2016-05-09 14:06:54 -0700
commit9cafb05c0efadc771197c0e1e98fa9d989b48d41 (patch)
treec70f969ad76a417ec896f10ecccd17ca0702c8ef /crypt.c
parentfa0dcb09fe69d23ceba28159e6be6b72adb9a9df (diff)
Change M_* symbols to MUTT_*
Changeset 23334e967dd7 created a workaround for a namespace conflict with Solaris and derivatives. After some discussion, the team decided it would be best to move away from using the "M_" prefix for macros. This patch was automatically generated by running: perl -wpi -e 's/\bM_(\w+)\b/MUTT_$1/g' `find . -name '*.[ch]' -print` with the exception that sys_socket.h was exempted. (That file will be backed out subsequent to this commit.) Thanks to Andras Salamon for supplying the perl script used to make this change.
Diffstat (limited to 'crypt.c')
-rw-r--r--crypt.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/crypt.c b/crypt.c
index 570cc361..7659fdc5 100644
--- a/crypt.c
+++ b/crypt.c
@@ -149,7 +149,7 @@ int mutt_protect (HEADER *msg, char *keylist)
ascii_strcasecmp (msg->content->subtype, "plain"))
{
if ((i = query_quadoption (OPT_PGPMIMEAUTO,
- _("Inline PGP can't be used with attachments. Revert to PGP/MIME?"))) != M_YES)
+ _("Inline PGP can't be used with attachments. Revert to PGP/MIME?"))) != MUTT_YES)
{
mutt_error _("Mail not sent: inline PGP can't be used with attachments.");
return -1;
@@ -167,7 +167,7 @@ int mutt_protect (HEADER *msg, char *keylist)
}
/* otherwise inline won't work...ask for revert */
- if ((i = query_quadoption (OPT_PGPMIMEAUTO, _("Message can't be sent inline. Revert to using PGP/MIME?"))) != M_YES)
+ if ((i = query_quadoption (OPT_PGPMIMEAUTO, _("Message can't be sent inline. Revert to using PGP/MIME?"))) != MUTT_YES)
{
mutt_error _("Mail not sent.");
return -1;
@@ -699,7 +699,7 @@ void crypt_extract_keys_from_messages (HEADER * h)
&& (Context->hdrs[Context->v2r[i]]->security & APPLICATION_PGP))
{
mutt_copy_message (fpout, Context, Context->hdrs[Context->v2r[i]],
- M_CM_DECODE|M_CM_CHARCONV, 0);
+ MUTT_CM_DECODE|MUTT_CM_CHARCONV, 0);
fflush(fpout);
mutt_endwin (_("Trying to extract PGP keys...\n"));
@@ -711,8 +711,8 @@ void crypt_extract_keys_from_messages (HEADER * h)
{
if (Context->hdrs[Context->v2r[i]]->security & ENCRYPT)
mutt_copy_message (fpout, Context, Context->hdrs[Context->v2r[i]],
- M_CM_NOHEADER|M_CM_DECODE_CRYPT
- |M_CM_DECODE_SMIME, 0);
+ MUTT_CM_NOHEADER|MUTT_CM_DECODE_CRYPT
+ |MUTT_CM_DECODE_SMIME, 0);
else
mutt_copy_message (fpout, Context,
Context->hdrs[Context->v2r[i]], 0, 0);
@@ -744,7 +744,7 @@ void crypt_extract_keys_from_messages (HEADER * h)
if ((WithCrypto & APPLICATION_PGP)
&& (h->security & APPLICATION_PGP))
{
- mutt_copy_message (fpout, Context, h, M_CM_DECODE|M_CM_CHARCONV, 0);
+ mutt_copy_message (fpout, Context, h, MUTT_CM_DECODE|MUTT_CM_CHARCONV, 0);
fflush(fpout);
mutt_endwin (_("Trying to extract PGP keys...\n"));
crypt_pgp_invoke_import (tempfname);
@@ -754,9 +754,9 @@ void crypt_extract_keys_from_messages (HEADER * h)
&& (h->security & APPLICATION_SMIME))
{
if (h->security & ENCRYPT)
- mutt_copy_message (fpout, Context, h, M_CM_NOHEADER
- |M_CM_DECODE_CRYPT
- |M_CM_DECODE_SMIME, 0);
+ mutt_copy_message (fpout, Context, h, MUTT_CM_NOHEADER
+ |MUTT_CM_DECODE_CRYPT
+ |MUTT_CM_DECODE_SMIME, 0);
else
mutt_copy_message (fpout, Context, h, 0, 0);
@@ -953,7 +953,7 @@ int mutt_signed_handler (BODY *a, STATE *s)
return mutt_body_handler (a, s);
}
- if (s->flags & M_DISPLAY)
+ if (s->flags & MUTT_DISPLAY)
{
crypt_fetch_signatures (&signatures, a->next, &sigcnt);
@@ -1009,7 +1009,7 @@ int mutt_signed_handler (BODY *a, STATE *s)
rc = mutt_body_handler (a, s);
- if (s->flags & M_DISPLAY && sigcnt)
+ if (s->flags & MUTT_DISPLAY && sigcnt)
state_attach_puts (_("\n[-- End of signed data --]\n"), s);
return rc;