-static struct mapping_t ComposeHelp[] = {
- {N_("Send"), OP_COMPOSE_SEND_MESSAGE},
- {N_("Abort"), OP_EXIT},
- {"To", OP_COMPOSE_EDIT_TO},
- {"CC", OP_COMPOSE_EDIT_CC},
- {"Subj", OP_COMPOSE_EDIT_SUBJECT},
- {N_("Attach file"), OP_COMPOSE_ATTACH_FILE},
- {N_("Descrip"), OP_COMPOSE_EDIT_DESCRIPTION},
- {N_("Help"), OP_HELP},
- {NULL}
-};
-
-#ifdef USE_NNTP
-static struct mapping_t ComposeNewsHelp[] = {
- {N_("Send"), OP_COMPOSE_SEND_MESSAGE},
- {N_("Abort"), OP_EXIT},
- {"Newsgroups", OP_COMPOSE_EDIT_NEWSGROUPS},
- {"Subj", OP_COMPOSE_EDIT_SUBJECT},
- {N_("Attach file"), OP_COMPOSE_ATTACH_FILE},
- {N_("Descrip"), OP_COMPOSE_EDIT_DESCRIPTION},
- {N_("Help"), OP_HELP},
- {NULL}
-};
-#endif
-
-static void snd_entry (char *b, size_t blen, MUTTMENU * menu, int num)
-{
- int old1=DrawFullLine,old2=option(OPTSTATUSONTOP);
-
- /*
- * XXX
- * mutt_FormatString is totally broken as it tries to determine
- * the max. width of the output string itself which may fail
- * (for example, for $status_on_top, many of the format strings
- * are as wide as screen but $attach_format is not, etc.)
- *
- * When $status_on_top is unset, mutt_FormatString() will respect
- * sidebar so unset it for compose menu entries by force... ;-(
- */
- DrawFullLine=0;
- unset_option(OPTSTATUSONTOP);
-
- mutt_FormatString (b, blen, NONULL (AttachFormat), mutt_attach_fmt,
- (unsigned long) (((ATTACHPTR **) menu->data)[num]),
- M_FORMAT_STAT_FILE | M_FORMAT_ARROWCURSOR);
-
- DrawFullLine=old1;
- if (old2) set_option(OPTSTATUSONTOP);