Skip to content

Commit

Permalink
still must match obs first
Browse files Browse the repository at this point in the history
  • Loading branch information
Gene Hightower committed Mar 29, 2024
1 parent 3502c31 commit dcc7692
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/message-parser.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,15 @@ group_list = mailbox_list / CFWS / obs_group_list
// 3.4.1. Addr-spec specification
// <https://datatracker.ietf.org/doc/html/rfc5322#section-3.4.1>

addr_spec = local_part "@" domain
addr_spec = obs_addr_spec / new_addr_spec

local_part = obs_local_part / dot_atom / quoted_string
new_addr_spec = local_part "@" domain

domain = obs_domain / dot_atom / domain_literal
obs_addr_spec = obs_local_part "@" obs_domain

local_part = dot_atom / quoted_string

domain = dot_atom / domain_literal

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

Expand Down Expand Up @@ -997,7 +1001,7 @@ obs_group_list = (CFWS? ",")+ CFWS?

obs_local_part = word ("." word)*

obs_domain = atom ("." atom)*
obs_domain = (atom ("." atom)*) / domain_literal

obs_dtext = obs_NO_WS_CTL / quoted_pair

Expand Down

0 comments on commit dcc7692

Please sign in to comment.