I'm in the process of replacing my home-grown header parser with the Chilkat plugin and got some issues from my collected cabinet of email horrors:
Beheizte Hausschuhe jetzt 60
Oddly the result is "Nie mehr kalte F" and the rest is missing.
I could parse this myself but the value of the header doesn't have the returns anymore. Which is quite correct except for this lovely mail here.
The code is quite simple:
In doTheParsing I fish out the individual header values.
As usual: Xojo 2016r4, Chilkat from July 2016, Mac OS 10.11.
Mit freundlichen Grüßen/Regards
http://www.mothsoftware.com Mail Archiver X: The email archiving solution for professionals
asked Dec 30 '16 at 09:49
For the first problem (where the Subject begins with "Nie mehr kalte Füße") I'd need to have the .eml so I could reproduce the problem by loading it via LoadEml.
For the 2nd problem, I'm not sure there's anything that can be done. MIME headers lines must be terminated by CRLF line endings. (Chilkat can deal with CR-only or LF-only line endings, but there must be some line ending to mark the end of one header and the start of another..)
answered Dec 30 '16 at 16:03
Thanks for sending the MIME to me..
I found the problem -- the line endings for the mime.txt were bare CR's. The line endings for headers in any MIME file, regardless of operating system, should be CRLF.
Chilkat handles LF-only line endings, and also auto-corrects as much "garbage" as possible. I made changes to auto-correct this case also, but I can't immediately get a new build out to you because of the time required to produce Xojo builds.
(I'm working on internal systems to better be able to quickly get new builds out. It's easy to produce new builds for .NET, ActiveX, C++, etc. because and individual build involves only a single operating system. Producing a new build (i.e. download) for Xojo involves building and gathering the DLLs/.so's for several operating systms, and that's why it's more time-consuming..)