I am using imapx to download html formatted emails from Gmail. I had issues with spaces between words disappearing. It seems that imapx is trimming of some spaces on the end of lines when it is creating the content stream. I fixed it with the following change to MessageContent.cs:
in AppendDataToContentStream(), I replaced:
_contentBuilder.Append(data.TrimEnd(new[] {' ', '='}));
with:
_contentBuilder.Append(data.TrimEnd(new[] {'='}));
Since the equals sign is signifying the continuation of the line, it should not be trimming spaces. These spaces are either harmless in tags or very important in the actual message text. I'm not really sure how such a big bug has been unnoticed for so long.
in AppendDataToContentStream(), I replaced:
_contentBuilder.Append(data.TrimEnd(new[] {' ', '='}));
with:
_contentBuilder.Append(data.TrimEnd(new[] {'='}));
Since the equals sign is signifying the continuation of the line, it should not be trimming spaces. These spaces are either harmless in tags or very important in the actual message text. I'm not really sure how such a big bug has been unnoticed for so long.