Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

Edited Issue: Body.HTML is leaving out spaces between words [1921]

$
0
0
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.

Viewing all articles
Browse latest Browse all 1952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>