X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=nntp%2Fnntp.c;h=a5deac18b0a27438e0cdafb89fe6b53053e34480;hp=14325239929e3110678477e708cb9ca4e30014a9;hb=330047119d7dc2674918d12253fc24146aefc8d3;hpb=2c56b665394c80195b976537e608b690947fcb14 diff --git a/nntp/nntp.c b/nntp/nntp.c index 1432523..a5deac1 100644 --- a/nntp/nntp.c +++ b/nntp/nntp.c @@ -9,35 +9,21 @@ * please see the file GPL in the top level source directory. */ -#ifdef HAVE_CONFIG_H -#include -#endif - -#include -#include -#include -#include +#include #include - #include +#include #include "mutt.h" #include "sort.h" #include "mx.h" #include "mx_nntp.h" #include "nntp.h" -#include "sidebar.h" #include "buffy.h" #include - -#include -#include -#include -#include - #define WANT_LISTGROUP_COMMAND 0 static unsigned int _checked = 0; @@ -540,7 +526,7 @@ static int nntp_parse_xover (CONTEXT * ctx, char *buf, HEADER * hdr) hdr->env = envelope_new(); hdr->env->newsgroups = m_strdup(nntp_data->group); - hdr->content = mutt_new_body (); + hdr->content = body_new(); hdr->content->type = TYPETEXT; hdr->content->subtype = m_strdup("plain"); hdr->content->encoding = ENC7BIT; @@ -1300,7 +1286,7 @@ int nntp_check_newgroups (NNTP_SERVER * serv, int force) if (l->data && ((NNTP_DATA *) l->data)->subscribed) _nntp_check_mailbox (NULL, (NNTP_DATA *) l->data); } - sidebar_draw (CurrentMenu); + sidebar_draw (); } else if (!force) return 0;