X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=parse.c;h=1562faf237b4b44a51895312abc258ad8ff55973;hp=c5b6aac12fb8fca16e0a24ed79e457d027392798;hb=b17296ba049d71986028ac83f0b415a021d0691c;hpb=10847442af799c403bd67bf0291cc119e55d72ce diff --git a/parse.c b/parse.c index c5b6aac..1562faf 100644 --- a/parse.c +++ b/parse.c @@ -38,7 +38,7 @@ * lines. ``line'' must point to a dynamically allocated string; it is * increased if more space is required to fit the whole line. */ -static char *read_rfc822_line (FILE * f, char *line, size_t * linelen) +char *mutt_read_rfc822_line (FILE * f, char *line, size_t * linelen) { char *buf = line; char ch; @@ -425,7 +425,7 @@ BODY *mutt_read_mime_header (FILE * fp, int digest) p->type = digest ? TYPEMESSAGE : TYPETEXT; p->disposition = DISPINLINE; - while (*(line = read_rfc822_line (fp, line, &linelen)) != 0) { + while (*(line = mutt_read_rfc822_line (fp, line, &linelen)) != 0) { /* Find the value of the current header */ if ((c = strchr (line, ':'))) { *c = 0; @@ -1101,7 +1101,7 @@ int mutt_parse_rfc822_line (ENVELOPE * e, HEADER * hdr, char *line, char *p, matched = 1; } else if (!ascii_strcasecmp (line + 1, "essage-id")) { - /* We add a new "Message-Id:" when building a message */ + /* We add a new "Message-ID:" when building a message */ mem_free (&e->message_id); e->message_id = extract_message_id (p); matched = 1; @@ -1320,7 +1320,7 @@ ENVELOPE *mutt_read_rfc822_header (FILE * f, HEADER * hdr, short user_hdrs, } while ((loc = ftell (f)), - *(line = read_rfc822_line (f, line, &linelen)) != 0) { + *(line = mutt_read_rfc822_line (f, line, &linelen)) != 0) { matched = 0; if ((p = strpbrk (line, ": \t")) == NULL || *p != ':') {