#include <lib-sys/unix.h>
#include <lib-mime/mime.h>
-#include <lib-ui/curses.h>
+#include <lib-ui/lib-ui.h>
#include <lib-ui/enter.h>
#include <lib-ui/menu.h>
#include <lib-mx/mx.h>
#include "sort.h"
#include "charset.h"
#include "buffy.h"
-#include "remailer.h"
#ifdef USE_NNTP
#include "nntp.h"
HDR_SUBJECT,
HDR_REPLYTO,
HDR_FCC,
- HDR_MIX,
HDR_CRYPT,
HDR_CRYPTINFO,
}
}
-static void redraw_mix_line (string_list_t * chain)
-{
- int c;
- const char *t;
-
- mvwaddstr (stdscr, HDR_MIX, SW, " Mix: ");
-
- if (!chain) {
- waddstr (stdscr, "<no chain defined>");
- wclrtoeol (stdscr);
- return;
- }
-
- for (c = 12; chain; chain = chain->next) {
- t = chain->data;
- if (t && t[0] == '0' && t[1] == '\0')
- t = "<random>";
-
- if (c + m_strlen(t) + 2 >= COLS - SW)
- break;
-
- waddstr (stdscr, NONULL (t));
- if (chain->next)
- waddstr (stdscr, ", ");
-
- c += m_strlen(t) + 2;
- }
-}
-
static int check_attachments (ATTACHPTR ** idx, short idxlen)
{
int i, r;
mutt_paddstr (W, fcc);
redraw_crypt_lines (msg);
- redraw_mix_line (msg->chain);
SETCOLOR (MT_COLOR_STATUS);
mvwaddstr (stdscr, HDR_ATTACH - 1, SW, _("-- Attachments"));
break;
}
- if (msg->chain && mix_check_message (msg) != 0)
- break;
-
if (!fccSet && *fcc) {
if ((i = query_quadoption (OPT_COPY,
_("Save a copy of this message?"))) == -1)
redraw_crypt_lines (msg);
mutt_message_hook (NULL, msg, M_SEND2HOOK);
break;
-
- case OP_COMPOSE_MIX:
- mix_make_chain (&msg->chain, &menu->redraw);
- mutt_message_hook (NULL, msg, M_SEND2HOOK);
- break;
}
/* Draw formated compose status line */