Open Trim opened 7 years ago
You can supply a custom EncodingFinder and handle the "null" parameter there. There are lots of "special" values out there, we can't handle them all. Thanks for reporting though. You are welcome to supply a patch, and I will then merge it in. I do not have much free time to work on this, sorry. You can also see the example at http://hpop.sourceforge.net/exampleChangeCharacterSetMapping.php
Hello,
We have an application relying on OpenPop to fetch email messages and their attachments on pop connection.
Recently, we had this style of error:
My colleague has run OpenPop in debug mode and we have found that the issue seems to come from ParseBodyEncoding function in MessagePart.cs.
To fix this issue we had to modify these lines with:
We've found that, because the header of problematic messages contained this type of text:
That's a bit of workaround, I think the code could set
characterSet
to the realnull
if it detect that the string is equals to the string"null"
.Thanks, Adrien