X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=compose.c;h=72e67375aa6435e84b1b2da636ddaf70f4ed0e2e;hp=d8e0694c7c10ef62ae03d972f9efad6ef92a5ce2;hb=fd97b7b962d97d99e98cd566a34fcdaaeb950bfd;hpb=576172ff50f9dd94dd2f5cc91d247c1e50dbe7fc diff --git a/compose.c b/compose.c index d8e0694..72e6737 100644 --- a/compose.c +++ b/compose.c @@ -686,31 +686,6 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ mutt_message_hook (NULL, msg, M_SEND2HOOK); break; - case OP_COMPOSE_ATTACH_KEY: - if (idxlen == idxmax) { - p_realloc(&idx, idxmax += 5); - menu->data = idx; - } - - idx[idxlen] = p_new(ATTACHPTR, 1); - if ((idx[idxlen]->content = - crypt_pgp_make_key_attachment (NULL)) != NULL) { - update_idx (menu, idx, idxlen++); - menu->redraw |= REDRAW_INDEX; - } - else - p_delete(&idx[idxlen]); - - menu->redraw |= REDRAW_STATUS; - - if (option (OPTNEEDREDRAW)) { - menu->redraw = REDRAW_FULL; - unset_option (OPTNEEDREDRAW); - } - - mutt_message_hook (NULL, msg, M_SEND2HOOK); - break; - case OP_COMPOSE_ATTACH_FILE: { char *prompt, **files; @@ -1277,7 +1252,7 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ } msg->security = 0; } - msg->security = crypt_send_menu (msg, &menu->redraw, 1); + msg->security = crypt_send_menu(msg, &menu->redraw, 1); redraw_crypt_lines (msg); mutt_message_hook (NULL, msg, M_SEND2HOOK); break;