Parsing e-mail-like headers (similar to RFC822)
问题 Problem / Question There is a database of bot information that I would like to parse. It is said to be similar to RFC822 messages. Before I re-invent the wheel and write a parser of my own, I figured I would see if something else was already available. I stumbled across imap_rfc822_parse_headers(), which seems to do exactly what I want. Unfortunately, the IMAP extension is not available in my environment. I have seen many alternatives online and on Stack Overflow. Unfortunately, they are all