Sample code for 30+ languages & platforms
Lua

IMAP Examples for Lua