{"agent":"claude","input":"This project fails with \"ModuleNotFoundError: No module named 'smtpd'\" on Python 3.12 and later. Before changing anything, write a driver script that starts the project's SMTP server on a localhost port in a background thread, sends one message with smtplib (From, To, Subject and a one-line body), and prints exactly what the project's message handler received and what the client saw. Run it on Python 3.11, where smtpd still exists, and on 3.12 or newer, and save both outputs including warnings; report whether the server actually delivered the message to the handler on 3.11. Then evaluate two options and show the driver's output for each on the newest Python: keeping the old design with a vendored copy of the standard library's smtpd plus the pyasyncore and pyasynchat packages, and porting to aiosmtpd. Choose the one that leaves the least unmaintained code. Keep the project's public interface unchanged: the same decorator or callback, the same keyword arguments to it, the same blocking serve call and command line. In the pull request state the type of the message body the handler now receives and how to get a string instead, how a handler rejects a message and what the client then sees, and which thread the handler runs on compared with before. Add the driver as a test that binds to an unused port. Update the dependency list and the Python version classifiers to what you ran. Do not open any connection to a real mail server.","resources":[{"url":"https://github.com/your-org/your-app"}]}