Inbox.py: SMTP for Humans
I'm guessing this is not complete?  I'll review it like it is complete though, since it doesn't say anywhere if it is or not.<p>I hope no one uses this in production.  Handling SMTP well is all about the edge cases, and this doesn't seem to handle any of them.<p>This is just a thin wrapper on python stdlib smtpd.SMTPServer, which is itself not production ready.  It also doesn't really make it easier.  The original API is better.  Why are magic decorators better than inheritance again?<p>Also, monkey patching?  Hidden side effects make sad pandas cry.  Let me throw up a little in my mouth.<p>There are zero unit tests for this, and no functional tests.<p>The original API has better documentation.  What are the to, sender, and body arguments?<p>Below seems a simpler API, and gives you the subject too.  I thought humans would be interested in the subject... but I guess not.<p><pre><code>  import inbox
  for m in inbox:
      toprint = m.to, m.from, m.subject, m.body
      print ("to:{} from:{} subject:{} body:{}".format(toprint))</code></pre>