X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-mime%2Frfc822parse.c;h=40c84f5dd9142f4aff9ce614fb7fe3a6bd621d2f;hb=2e9b51fb51a029d99e890a791e00411daee21134;hp=3e77c5765029158d16ce309afc0bf291a3dec253;hpb=16534e98723674fa391e3fc29d2a07ce419c13dd;p=apps%2Fmadmutt.git diff --git a/lib-mime/rfc822parse.c b/lib-mime/rfc822parse.c index 3e77c57..40c84f5 100644 --- a/lib-mime/rfc822parse.c +++ b/lib-mime/rfc822parse.c @@ -331,7 +331,7 @@ void mutt_parse_content_type(char *s, BODY *ct) pc = parameter_getval(ct->parameter, "charset"); if (!pc) { parameter_setval(&ct->parameter, "charset", - charset_getfirst(MCharset.assumed_charset)); + charset_getfirst(mod_cset.assumed_charset)); } } } @@ -911,13 +911,6 @@ string_list_t **mutt_parse_rfc822_line(ENVELOPE *e, HEADER *hdr, char *line, cha e->to = rfc822_parse_adrlist(e->to, p); break; -#ifdef USE_NNTP - case MIME_X_COMMENT_TO: - if (!e->x_comment_to) - e->x_comment_to = m_strdup(p); - break; -#endif - case MIME_X_LABEL: e->x_label = m_strdup(p); break; @@ -1034,15 +1027,12 @@ mutt_read_rfc822_header(FILE *f, HEADER *hdr, short user_hdrs, short weed) { /* if spam tag already exists, figure out how to amend it */ if (e->spam && *buf) { - if (SpamSep) { - /* If SpamSep defined, append with separator */ - mutt_buffer_addstr(e->spam, SpamSep); - mutt_buffer_addstr(e->spam, buf); + if (mod_mime.spam_separator) { + mutt_buffer_addstr(e->spam, mod_mime.spam_separator); } else { - /* else overwrite */ mutt_buffer_reset(e->spam); - mutt_buffer_addstr(e->spam, buf); } + mutt_buffer_addstr(e->spam, buf); } if (!e->spam) {