count single \r or \n as \r\n while checking line length against MAXHEADERSIZE

Johan van Selst johans at stack.nl
Sat Sep 25 09:01:13 UTC 2010


Julien ?LIE wrote:
>   If the resulting References header field would, after unfolding,
>   exceed 998 characters in length (including its field name but not the
>   final CRLF), it MUST be trimmed (and otherwise MAY be trimmed).
>   Trimming means removing any number of message identifiers from its
>   content, except that the first message identifier and the last two
>   MUST NOT be removed.
>
> I do not understand the "it MUST be trimmed (and otherwise MAY be trimmed)"
> part.  Does it mean that it is not necessary to trim a References: header
> field when its *body* part has 998 characters?
> What the "MAY" refers to?

No. The header must always be trimmed if it exceeds 998 characters.
The header may be trimmed if it does not exceed 998 characters.
So even Reference headers that do not exceed the limit (e.g. a 500
character header) may still be trimmed down to just 3 message
identifiers.

At least, that is how I read this.


Regards,
Johan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/inn-workers/attachments/20100925/e7c767f5/attachment.bin>


More information about the inn-workers mailing list