X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=parse.c;h=9c1195dd46f8b7be2d457b6ee770ee27b46fe35d;hb=efe9a0bac26a7dabf3953ea0597ce06b3dcb21fe;hp=eae5511198d61ef86e52abb8813199e61b76b226;hpb=a743b55a20cbf3a33699fdb24dcb8638e878cc46;p=apps%2Fmadmutt.git diff --git a/parse.c b/parse.c index eae5511..9c1195d 100644 --- a/parse.c +++ b/parse.c @@ -1034,8 +1034,8 @@ int mutt_parse_rfc822_line (ENVELOPE * e, HEADER * hdr, char *line, char *p, #ifdef USE_NNTP else if (!m_strcasecmp(line + 1, "ollowup-to")) { if (!e->followup_to) { - str_skip_trailws (p); - e->followup_to = m_strdup(vskipspaces(p)); + m_strrtrim(p); + e->followup_to = m_strdup(skipspaces(p)); } matched = 1; } @@ -1078,7 +1078,7 @@ int mutt_parse_rfc822_line (ENVELOPE * e, HEADER * hdr, char *line, char *p, /* Take the first mailto URL */ if (url_check_scheme (beg) == U_MAILTO) { p_delete(&e->list_post); - e->list_post = str_substrdup (beg, end); + e->list_post = p_dupstr(beg, end - beg); break; } } @@ -1117,8 +1117,8 @@ int mutt_parse_rfc822_line (ENVELOPE * e, HEADER * hdr, char *line, char *p, case 'n': if (!m_strcasecmp(line + 1, "ewsgroups")) { p_delete(&e->newsgroups); - str_skip_trailws (p); - e->newsgroups = m_strdup(vskipspaces(p)); + m_strrtrim(p); + e->newsgroups = m_strdup(skipspaces(p)); matched = 1; } break;