nmh-workers
[Top] [All Lists]

Re: unquoted period in display-name in address field?

2021-08-31 07:56:18
Greg wrote:

if you could point me at this code?  my case comes up often enough, i
might be motivated at some point to break ... errr, i mean "attempt to
fix", this to also work with my case.  (unit tests?)

See sbr/addrsbr.[hc] and sbr/mf.[hc].

I recently added an RFC 5322 address parser to the code base, but it's
not part of the main code.  It's Python but relies on regular express
ions so it shouldn't be too difficult to port to C.  On the gmailapis
branch, it's in docs/contrib/gmailapis/RFC5322.py, with some
nmh-specific addi tions in nmh_addr.py.  There are unit tests as well.

David

<Prev in Thread] Current Thread [Next in Thread>