-void sidebar_set_buffystats (CONTEXT* curContext) {
- int i = 0;
- BUFFY* tmp = NULL;
- if (!curContext || !Incoming.len || (i = buffy_lookup (curContext->path)) < 0)
- return;
- tmp = Incoming.arr[i];
- tmp->new = curContext->new;
- tmp->msg_unread = curContext->unread;
- tmp->msgcount = curContext->msgcount;
- tmp->msg_flagged = curContext->flagged;
-}
-
-void sidebar_draw_frames (void) {
- ssize_t i,delim_len;
-
- if (!option(OPTMBOXPANE) || SidebarWidth==0)
- return;
-
- delim_len=m_strlen(NONULL(SidebarDelim));
-
- /* draw vertical delimiter */
- SETCOLOR (MT_COLOR_SIDEBAR);
- for (i = 0; i < LINES-1; i++) {
- move (i, SidebarWidth - delim_len);
- if (option (OPTASCIICHARS))
- addstr (NONULL (SidebarDelim));
- else if (!option (OPTASCIICHARS) && !m_strcmp(SidebarDelim, "|"))
- addch (ACS_VLINE);
- else if ((Charset_is_utf8) && !m_strcmp(SidebarDelim, "|"))
- addstr ("\342\224\202");
- else
- addstr (NONULL (SidebarDelim));
- }