Complete steps 1-6 of HowTo: Create Services Programmatically (http://msdn.microsoft.com/en-us/library/76477d2t.aspx), because we are creating a Windows Service to act as the IMAP email alert system.