X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=nntp%2Fnntp.c;h=2559221b32700dbc742388cab1510b256bd7895c;hp=d5b799195bb5b436a89c3b3e014b500f2044270a;hb=a743b55a20cbf3a33699fdb24dcb8638e878cc46;hpb=2a06362a155582cd59ae2ef6f0df71694a7eede3 diff --git a/nntp/nntp.c b/nntp/nntp.c index d5b7991..2559221 100644 --- a/nntp/nntp.c +++ b/nntp/nntp.c @@ -26,7 +26,6 @@ #include "mx.h" #include "mx_nntp.h" #include "rfc1524.h" -#include "rfc2047.h" #include "nntp.h" #include "sidebar.h" #include "buffy.h" @@ -584,7 +583,7 @@ static int nntp_parse_xover (CONTEXT * ctx, char *buf, HEADER * hdr) hdr->env->subject = m_strdup(b); break; case 2: - rfc822_free_address (&hdr->env->from); + address_delete (&hdr->env->from); hdr->env->from = rfc822_parse_adrlist (hdr->env->from, b); /* same as for mutt_parse_rfc822_line(): * don't leave from info NULL if there's an invalid address (or @@ -592,7 +591,7 @@ static int nntp_parse_xover (CONTEXT * ctx, char *buf, HEADER * hdr) * and mark mail/(esp.) news article as your own. aaargh! this * bothered me for _years_ */ if (!hdr->env->from) { - hdr->env->from = rfc822_new_address (); + hdr->env->from = address_new (); hdr->env->from->personal = m_strdup(b); } break; @@ -621,7 +620,7 @@ static int nntp_parse_xover (CONTEXT * ctx, char *buf, HEADER * hdr) hdr->env->xref = m_strdup(b); nntp_parse_xref (ctx, nntp_data->group, b, hdr); } - rfc2047_decode_envelope (hdr->env); + rfc2047_decode_envelope(hdr->env); if (!*p) return -1; b = p;