Unexpected characters returned when reading email using ImapX
问题 When reading the body of an email using ImapX there is unexpected text at the end. A simplified version of the code is using (var imapClient = new ImapClient(host, port, useSSL)) { if (!imapClient.Connect()) throw new Exception(string.Format("Failed to connect to {0}:{1}", host, port)); if (!imapClient.Login(username, password)) throw new Exception(string.Format("Login failed for {0} connecting to {1}:{2}", username, host, port)); imapClient.Folders.Inbox.Messages.Download(); foreach (var