Email application requires seamless co-operation with the client (phone) and the email server. There are a number of different protocols to choose from - the protocols shall match. Despite our attempts to automate the process, it may happen that the Email app does not always work correctly. In that case, it is useful to do some debugging, i.e. to collect logs showing the detailed data traffic between the phone and the server.
This article instructs how to enable message logging.
1. The home directory.
Check what your home directory is. We want to save the logs there.
Pay attention to if it prints out a)
/home/nemo or b)
/home/defaultuser. You will need this at step #2 below.
2. Look for the configuration file and edit it as explained below.
This article explains how to use the 'vi' line editor on the Sailfish Terminal app.
Open the editor:
Enable logging to a file. Add the path for the log file - choose the correct home directory
Path=/home/nemo/messageserver.log ## case 1 a)
Path=/home/defaultuser/messageserver.log ## case 1 b)
This is how it should look at the vi editor:
3. Save the changes and close the editor.
4. Reboot the device.
5. Reproduce the email problem. Try to send/receive an email message using your email account, or run the Sync command in the pulley menu of your email account (in "Settings > Accounts > [account]" ), depending on how the issues have usually occurred. The messages related to this sync action are then collected to the log file defined at step #2.
6. It is useful to collect the journal log, too. Please follow the instructions in this article.
7. Connect your Sailfish device to your computer with a data-enabled USB cable in MTP mode. In the File Manager of the computer, find files messageserver.log and journal.txt in the Mass storage under your Sailfish device (appears there by the names like "Jolla..." or "Xperia..."). Send the files to us, please.
PLEASE make notes when (date and time) the issues happened so that it would be easier for us to investigate your logs later.
End of job
8. After taking the logs, turn message logging off again by setting "Enabled" to 0. Remember to reboot your phone.