[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: retreive_field does not strip \r from the headers

From: Dan Nelson
Subject: Re: retreive_field does not strip \r from the headers
Date: Wed, 29 Oct 2003 09:26:34 -0600
User-agent: Mutt/1.5.4i

In the last episode (Oct 29), Michail Vidiassov said:
> On Tue, 28 Oct 2003, Dan Nelson wrote:
> > I will probably have to do that.  But what if the author put a
> > trailing \r in his subject for some reason?  I'm fixing your
> > problem but creating another, less frequent problem.  I don't like
> > solutions like that :)
> RFC 2822:
>    (":"), followed by a field body, and terminated by CRLF.  A field
>    name MUST be composed of printable US-ASCII characters (i.e.,
>    characters that have values between 33 and 126, inclusive), except
>    colon.  A field body may be composed of any US-ASCII characters,
>    except for CR and LF.  However, a field body may contain CRLF when
> Am I correct in readin it? Or there is some other MIME RFC, that
> allows CR in the filed body?

No, you're right.  I'll add code to strip extra CRs from fields.

        Dan Nelson

reply via email to

[Prev in Thread] Current Thread [Next in Thread]