Skip to content

Commit

Permalink
obs forms must match 1st
Browse files Browse the repository at this point in the history
  • Loading branch information
Gene Hightower committed Mar 29, 2024
1 parent 974d041 commit 7ea5c48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/message-parser.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ group_list = mailbox_list / CFWS / obs_group_list

addr_spec = local_part "@" domain

local_part = dot_atom / quoted_string / obs_local_part
local_part = obs_local_part / dot_atom / quoted_string

domain = dot_atom / domain_literal / obs_domain
domain = obs_domain / dot_atom / domain_literal

domain_literal = CFWS? "[" (FWS? dtext)* FWS? "]" CFWS?

Expand Down Expand Up @@ -330,7 +330,7 @@ orig_date = "Date"i WSP* ":" date_time CRLF
// <https://datatracker.ietf.org/doc/html/rfc5322#section-3.6.2>

// <https://datatracker.ietf.org/doc/html/rfc6854#section-2>
from = "From"i WSP* ":" list:(mailbox_list / address_list) CRLF
from = "From"i WSP* ":" list:(address_list) CRLF
{
return list;
}
Expand Down

0 comments on commit 7ea5c48

Please sign in to comment.