On Wed, Jan 31, 2024 at 01:00:56PM +0100, Michael Storz via Postfix-users wrote:
> day = ([FWS] 1*2DIGIT FWS) / obs-day
>
> This says a day can consist of one or two digits preceded by an optional
> folding white space (FWS):
>
> FWS = ([*WSP CRLF] 1*WSP) / obs-FWS
>
> A FWS can be a single WSP or a folded line.
No, 1*element, means one *or more* instances of the element.
https://datatracker.ietf.org/doc/html/rfc5234#section-3.6
The operator "*" preceding an element indicates repetition. The full
form is:
<a>*<b>element
where <a> and <b> are optional decimal values, indicating at least
<a> and at most <b> occurrences of the element.
Default values are 0 and infinity so that *<element> allows any
number, including zero; 1*<element> requires at least one;
3*3<element> allows exactly 3; and 1*2<element> allows one or two.
> Therefore the date "Fri, 5 Jan 2024 16:48:37 -0500 (EST)" is syntactically
> incorrect,
No, it is therefore syntactically correct. And the day can be specified
with either 1 or digits, so is neither invalid nor obsolete.
https://datatracker.ietf.org/doc/html/rfc5322#section-3.3
day = ([FWS] 1*2DIGIT FWS) / obs-day
What's obsolete is insertion of comments around elements of the date.
--
Viktor.
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]