Alessandro Vesely wrote in <[email protected]>: |On Sat 14/Jun/2025 20:53:37 +0200 Steffen Nurpmeso wrote: |> (But yes, email address parsing is a hairy thing, if to be done |> really right. With fingers pointing everywhere.) | |My take, after Murray's: |http://www.tana.it/svn/zdkimfilter/trunk/libopendkim/dkim-mailparse.h |http://www.tana.it/svn/zdkimfilter/trunk/libopendkim/dkim-mailparse.c
The sendmail-based parser of OpenDKIM, surely further refined by you, was the best among those i looked at when in December 2023/January 2024 i had a little look around before i wrote my 5322 parser from scratch. Yes. And small and pretty fast. (That is, i took the parser out of OpenDKIM, among others, and fed it some of the tests i already had by then. If i recall correctly it had a problem with group addresses in that it "failed" to recognize the error of a missing comma in between the end of a group, and a follow-up address, for example Undisclosed recipients:;x@y Undisclosed recipients:;< x @ y > would succeed to recognize x@y as a correct address, where Undisclosed recipients:;,x@y Undisclosed recipients:;,<x@y> would have been correct RFC 822/2822/5322, and even RFC 733 i think; Dave Crocker takes this with him, and right he is.) --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt) _______________________________________________ Ietf-dkim mailing list -- [email protected] To unsubscribe send an email to [email protected]
