From: David Shaw Date: Tue, 13 Apr 2004 08:02:12 +0000 (+0000) Subject: Rename pgp_mime_ask to pgp_mime_auto; change the default; change the X-Git-Tag: mutt-1-5-15-rel~180 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a091d1e49ca1c875f48b082ab93f0076951e99e7;p=mutt Rename pgp_mime_ask to pgp_mime_auto; change the default; change the error message given if that variable is set to "no." --- diff --git a/crypt.c b/crypt.c index f50842f2..fe5dc2c4 100644 --- a/crypt.c +++ b/crypt.c @@ -185,8 +185,11 @@ int mutt_protect (HEADER *msg, char *keylist) } /* otherwise inline won't work...ask for revert */ - if ((i = query_quadoption (OPT_PGPMIMEASK, _("Message can't be sent inline. Revert to using PGP/MIME?"))) != M_YES) - return -1; + if ((i = query_quadoption (OPT_PGPMIMEAUTO, _("Message can't be sent inline. Revert to using PGP/MIME?"))) != M_YES) + { + mutt_error _("Mail not sent."); + return -1; + } /* go ahead with PGP/MIME */ } diff --git a/init.h b/init.h index e7d4454f..781dbcd5 100644 --- a/init.h +++ b/init.h @@ -1391,7 +1391,7 @@ struct option_t MuttVars[] = { ** which consist of more than a single MIME part. Mutt can be ** configured to ask before sending PGP/MIME messages when inline ** (traditional) would not work. - ** See also: ``$$pgp_mime_ask''. + ** See also: ``$$pgp_mime_auto''. ** .pp ** Also note that using the old-style PGP message format is \fBstrongly\fP ** \fBdeprecated\fP. @@ -1413,7 +1413,7 @@ struct option_t MuttVars[] = { ** which consist of more than a single MIME part. Mutt can be ** configured to ask before sending PGP/MIME messages when inline ** (traditional) would not work. - ** See also: ``$$pgp_mime_ask''. + ** See also: ``$$pgp_mime_auto''. ** .pp ** Also note that using the old-style PGP message format is \fBstrongly\fP ** \fBdeprecated\fP. @@ -1469,7 +1469,7 @@ struct option_t MuttVars[] = { ** `reverse-'. ** (PGP only) */ - { "pgp_mime_ask", DT_QUAD, R_NONE, OPT_PGPMIMEASK, M_NO }, + { "pgp_mime_auto", DT_QUAD, R_NONE, OPT_PGPMIMEAUTO, M_ASKYES }, /* ** .pp ** This option controls whether Mutt will prompt you for diff --git a/mutt.h b/mutt.h index c381c803..3dfe27d6 100644 --- a/mutt.h +++ b/mutt.h @@ -278,7 +278,7 @@ enum OPT_MIMEFWD, OPT_MIMEFWDREST, OPT_MOVE, - OPT_PGPMIMEASK, /* ask to revert to PGP/MIME when inline fails */ + OPT_PGPMIMEAUTO, /* ask to revert to PGP/MIME when inline fails */ #ifdef USE_POP OPT_POPDELETE, OPT_POPRECONNECT,