- case 1: /* (e)ncrypt */
- msg->security |= ENCRYPT;
- msg->security &= ~SIGN;
- break;
+ char prompt[LONG_STRING];
+
+ snprintf (prompt, sizeof (prompt),
+ _("PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, %s format, or (c)lear? "),
+ (msg->security & INLINE) ? _("PGP/M(i)ME") : _("(i)nline"));
+
+ /* The keys accepted for this prompt *must* match the order in the second
+ * version in the else clause since the switch statement below depends on
+ * it. The 'i' key is appended in this version.
+ */
+ choice = mutt_multi_choice (prompt, _("esabfci"));
+ }
+ else
+ {
+ /* The keys accepted *must* be a prefix of the accepted keys in the "if"
+ * clause above since the switch statement below depends on it.
+ */
+ choice = mutt_multi_choice(_("PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (c)lear? "),
+ _("esabfc"));
+ }
+
+ switch (choice)
+ {
+ case 1: /* (e)ncrypt */
+ msg->security |= ENCRYPT;
+ msg->security &= ~SIGN;
+ break;