... CSNet didn't happen until the mid-80s, by which time
sendmail was firmly entrenched in the BSD world. ...
Right -- my bad. CSNET did not occur until a few years after I had finished my grad work and left. ISTR CSNET used MMDF as the mail transport agent (not sendmail). But my point was that there were numerous alternate mail systems, commercial and independent, that had "portals" into and out of the USENET and the ARPANET and later the Internet - so email headers were getting warped in strange ways and trying to be able to reliably reply was often difficult.
Eric was having to deal with some new hacks fairly regularly, and the idea of a production language to convert format A to B to C was a good one. The only real mistake in my mind was that (unlike MMDF) he built the SMTP daemon in sendmail. MMDF and some of the other systems had programs that converted to/from a canonical form (usually RFC733/822 style) and then some sets of external utilities that talked to the "port" - be it UUCP, SMTP, "PhoneNet", or whatever. But making it built into sendmail itself, in fact, was a violation of the UNIX "do one job well" idea and would, of course, be the attack vector. The two sad parts of that IMO is that first most people did not need most of the features of sendmail -- they needed just SMTP and maybe UUCP, but send sendmail was the SMTPD for BSD, that is what they had. But the BBN TCP/IP package that UCB started with had a separate SMTPD and Eric could have just called it like he did the UUCP subsystem.