AfterLogic WebMail Lite PHP is a free AJAX webmail application. Users can receive, view, manage, compose, and send email through web interface (IMAP and SMTP supported). Source code included.
BenMail is simple and fast Python/Qt based email client. Features multi-languge support, MIME attachments, multiple accounts, threading. It is thought to be very extensible.