That sounds really interesting, and I've often wanted to do something similar myself. Do you have plans for a convenient curses-based interface, so I don't have to type stuff out or press enter all the time?
Really lumail is a console application, similar to mutt, but with a different feature-set. (i.e. No IMAP, no POP3, real scripting, modal-mode, and similar.)
https://github.com/skx/lumail/
http://lumail.org/