Closes #3069. Also make (s)ign automatically ask for a key if no
default is defined.
-2008-06-25 22:43 -0700 Brendan Cully <brendan@kublai.com> (e2780a423d96)
+2008-06-25 23:13 -0700 Brendan Cully <brendan@kublai.com> (d2134eced31b)
+
+ * init.h: Make $move default to no instead of ask-no. Closes #2945.
+
+ * doc/manual.xml.head: Document difference between index and pager
+ search. Closes #2886.
* commands.c, copy.c, crypt-gpgme.c, handler.c, mbox.c, pgp.c: Make
mutt_copy_message distinguish between fatal and non-fatal errors.
pid_t thepid;
char *intermediates = smime_get_field_from_db(NULL, SmimeDefaultKey, 1, 1);
+ if (!SmimeDefaultKey)
+ {
+ mutt_error _("Can't sign: No key specified. Use Sign As.");
+ return NULL;
+ }
+
if (!intermediates)
{
mutt_message(_("Warning: Intermediate certificate not found."));
case 2: /* (s)ign */
if(!SmimeDefaultKey)
- mutt_message _("Can't sign: No key specified. Use Sign As.");
- else
{
- msg->security |= SIGN;
- msg->security &= ~ENCRYPT;
+ *redraw = REDRAW_FULL;
+
+ if ((p = smime_ask_for_key (_("Sign as: "), NULL, 0)))
+ mutt_str_replace (&SmimeDefaultKey, p);
+ else
+ break;
}
+
+ msg->security |= SIGN;
+ msg->security &= ~ENCRYPT;
break;
case 4: /* sign (a)s */