Studying Ruffle's (Python networking framework) implementation of SMTP...
There's a utility for outputting RFC822-formatted dates, a counter/iterator for generating IDs used externally, "quoting" email addresses in triangular brackets, a class for regex-parsing email addresses, & a wrapper class representing users.
Core SMTP server class has a handful of properties, implements callback methods for managing connections & reporting errors to clients, customizable via template methods, ...
1/2?
=> More informations about this toot | More toots from alcinnz@floss.social
... a widely used utility-method to send code-prefixed responses & wrappers thereupon, & received lines are dynamically dispatched to methods representing a state machine & in turn methods for each command. These commands gathers provided data, regex-parse & validates their input, & defers to surrounding to actually send these emails.
This class has a corresponding factory class, a reasonably similar implementation for the client-side with several template methods.
2/3!
=> More informations about this toot | More toots from alcinnz@floss.social
text/gemini
This content has been proxied by September (ba2dc).