WinForms IMAP client - mailbox browser

Allows you to browse, view and manage mail messages in a remote IMAP mailbox, without actually downloading them. Demonstrates how to connect to IMAP server, download emails, read its content, work with attachments.

This sample demonstrates:

  • Connecting and authenticating to IMAP server
  • Browsing folders
  • Using idle mode (polling for new mails using CheckForUpdates method)
  • Downloading message list and message headers
  • Downloading raw message data
  • Displaying messages using a nice UI
  • Working with IMAP server in a background thread without blocking the UI
  • Deleting messages
  • Authenticating using Windows credentials (so called single sign-on)