I have several msg files exported from outlook that the message body is corrupted when added to 6.3.7. opening the msg file in outlook shows a plain text email with a few attachments. when I save the added file out of openkm it's an eml file, and that opens as an html email. the readable text from the msg file gets turned into non-printable characters in the openkm preview and the eml file.
additionally, if I use OKMRest 1.2.2 .net SDK's importMsg method the files added corrupt as with the interface, but I get an exception too: $exception {"MailImpl (importMsg)\n'\u0003', hexadecimal value 0x03, is an invalid character. Line 1, position 410.\n\ncom.openkm.sdk4csharp.exception.UnknowException: '\u0003', hexadecimal value 0x03, is an invalid character. Line 1, position 410.\r\n at com.openkm.sdk4csharp.impl.MailImpl.importMsg(String dstId, String title, FileStream fileStream)"} com.openkm.sdk4csharp.exception.OKMRestException
search results on this error lead to a possible XML conversion issue, like that 0x03 needs to be escaped but isn't
I was able to find the original raw SMTP message in my mail archives, headers mark it as:
additionally, if I use OKMRest 1.2.2 .net SDK's importMsg method the files added corrupt as with the interface, but I get an exception too: $exception {"MailImpl (importMsg)\n'\u0003', hexadecimal value 0x03, is an invalid character. Line 1, position 410.\n\ncom.openkm.sdk4csharp.exception.UnknowException: '\u0003', hexadecimal value 0x03, is an invalid character. Line 1, position 410.\r\n at com.openkm.sdk4csharp.impl.MailImpl.importMsg(String dstId, String title, FileStream fileStream)"} com.openkm.sdk4csharp.exception.OKMRestException
search results on this error lead to a possible XML conversion issue, like that 0x03 needs to be escaped but isn't
I was able to find the original raw SMTP message in my mail archives, headers mark it as:
Code: Select all
text body part is
Content-Transfer-Encoding: 7bit
Content-Type: multipart/mixed;
boundary="Apple-Mail-E819C806-3C10-4266-AB6B-491067E0E843"
Code: Select all
followed by a base64 image part, another plain text 7bit part that's just a couple newlines (what the hell apple), then another base64 image, and another plain text 7bit part that's a signature--Apple-Mail-E819C806-3C10-4266-AB6B-491067E0E843
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Adjunto fotos como evidencia del rechazo
Code: Select all
all the msg files that I'm seeing issues with are spanish language, but so far I'm not seeing accented characters or anything in the original files that would explain a 0x03 character. any ideas how to go about making this work?--Apple-Mail-E819C806-3C10-4266-AB6B-491067E0E843
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Enviado desde mi iPhone