The MIME libraries (sope-mime) contain
  classes for processing MIME entities (NGMime),
  a full IMAP4 implementation (NGImap4),
  prototypical POP3 and SMTP processors (NGMail).
classes for processing MIME entitiesa full IMAP4 implementationprototypical POP3 and SMTP processors
  The libraries are released under the 
  Lesser General Public License.
  to be completed ...
  You can find examples and testing tools in the
  samples folder
  of the source package.