X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=parse.c;h=c5b6aac12fb8fca16e0a24ed79e457d027392798;hp=a009063ab5bad605149c23085a8a66c6622ad69e;hb=e83dbdbc6200a71981d06773869cd0492f81f16c;hpb=bbc4fd52516a8afefbd14c77e34f8389d6f0a6ed diff --git a/parse.c b/parse.c index a009063..c5b6aac 100644 --- a/parse.c +++ b/parse.c @@ -1034,7 +1034,7 @@ int mutt_parse_rfc822_line (ENVELOPE * e, HEADER * hdr, char *line, char *p, * bothered me for _years_ */ if (!e->from) { e->from = rfc822_new_address (); - e->from->personal = str_dup (line + 6); + e->from->personal = str_dup (p); } matched = 1; } @@ -1393,31 +1393,11 @@ ENVELOPE *mutt_read_rfc822_header (FILE * f, HEADER * hdr, short user_hdrs, if (hdr) { hdr->content->hdr_offset = hdr->offset; hdr->content->offset = ftell (f); - - /* do RFC2047 decoding */ - rfc2047_decode_adrlist (e->from); - rfc2047_decode_adrlist (e->to); - rfc2047_decode_adrlist (e->cc); - rfc2047_decode_adrlist (e->bcc); - rfc2047_decode_adrlist (e->reply_to); - rfc2047_decode_adrlist (e->mail_followup_to); - rfc2047_decode_adrlist (e->return_path); - rfc2047_decode_adrlist (e->sender); - - if (e->subject) { - regmatch_t pmatch[1]; - - rfc2047_decode (&e->subject); - - if (regexec (ReplyRegexp.rx, e->subject, 1, pmatch, 0) == 0) - e->real_subj = e->subject + pmatch[0].rm_eo; - else - e->real_subj = e->subject; - } - + rfc2047_decode_envelope (e); /* check for missing or invalid date */ if (hdr->date_sent <= 0) { - debug_print (1, ("no date found, using received time from msg separator\n")); + debug_print (1, ("no date found, using received " + "time from msg separator\n")); hdr->date_sent = hdr->received; } }