Sample code for 30+ languages & platforms
SQL Server

IMAP Examples for SQL Server