Error Processing source. Failed to guess encoding

When things doesn't work as they should.
Post Reply
jaime.leon
Posts: 2
Joined: Mon Aug 26, 2019 2:27 pm

Error Processing source. Failed to guess encoding

Post by jaime.leon » Mon Aug 26, 2019 3:14 pm

Hello to all,
I am a complete noob on this system. I just installed last week Mayan EDMS on Ubuntu 1904 as a test. Everything appears to work importing from a Watch Folder and I am well impressed by the system. I like the idea of importing email directly, but unfortunately this does not appear to work well for all conditions. After setting up the incoming email account parameters, Mayan imports just one email, which tells me access to the email server is OK, and fails with the error:

Error Processing source. Failed to guess encoding

The error is from the IMAP email source log. I am guessing that the error is due to Mayan not being able to cope with emails coming from China, which happens to be the second email in the email account. I have no idea where to look and I have been unable to find anything on Google to help me find a solution. I will appreciate any help.

Thanks in advance.
Jaime Leon

jaime.leon
Posts: 2
Joined: Mon Aug 26, 2019 2:27 pm

Re: Error Processing source. Failed to guess encoding

Post by jaime.leon » Mon Sep 02, 2019 6:43 pm

Hello
The offending email that shuts down the import is encoded in UTF-8 Chinese. How can I get Mayan to accept this encoding? Is there a workaround to maybe ignore the encoding?

Thanks in advance.

Jaime Leon

User avatar
rosarior
Posts: 345
Joined: Tue Aug 21, 2018 3:28 am

Re: Error Processing source. Failed to guess encoding

Post by rosarior » Tue Sep 03, 2019 2:25 am

Hi,

we would need a sample of the email that is causing the issue. If you could generate and dump a blank or sample test email so that we add an automated test for it. There is a merge request that I suspect deals with this (https://gitlab.com/mayan-edms/mayan-edm ... equests/54) but it is lacking a test email to be completed and merged.

Post Reply