Or just use a bonafide mail client. Gmail allows you to use IMAP and SMTP; get the fastest mail client you can find for your platform, set its sticky bit or patch its executable .text section into your OS's resident parts, in fact, go out there and get a processor with enough L1 cache to keep your mail client in there at all times. Email is mission critical, gotta be fast.