Debugging ImapX

ImapX allows you to create a log file with all requests sent and all responses received. In order to do this, do the following

// Add this on application startup, remember to change the path
Debug.Listeners.Add(new TextWriterTraceListener(@"C:\users\public\test.txt"));
Debug.AutoFlush = true;

// After you created the client, set
client.IsDebug = true;

Also remember to turn on the "Define DEBUG constant" setting in your project's build properties.

Important: Please consider that the log file will contain the login and password you have used. Remeber to remove it before you send the log for review!