We have moved to a new Sailfish OS Forum. Please start new discussions there.
7

Creating IMAP account in mail app fails with large number of folders

asked 2015-04-03 15:24:59 +0300

dyraig gravatar image

updated 2016-04-04 11:30:15 +0300

I just got my Jolla a few days ago and updated it immediately to 1.1.2.16. Right now, I'm trying to configure the phone to my gusto.

One of the things I cannot get to work is the mail app. I have my own mail server running Dovecot and I use IMAP on my internal network. I have mutt installed on the Jolla as well, and mutt connects to the server without any problems, so the connection to the server and the server itself work well. The server works also with my N900 and all other workstations.

However, when I try to add a suitable account to the mail app, all I get is either "connection timed out" or "problem with configuration". I can see that the Jolla connects to dovecot in the server logs, but that's it. I am using a self-signed certificate in Dovecot, but I have disabled SSL/TLS in the mail app and enabled "Accept unauthorised certificates" - to no avail.

What's even worse: Whenever I get one of the error messages, I have to restart mail app to try again - simply changing entries in the account does not get mail app to actually try again. It just says "verifying...", then "timed out" without even sending any packages to the server (verified with tcpdump both on the Jolla and on the server).

So far, I've tried all combinations I could think of (with/without SSL/TLS, with/without unauthorised certs enabled, with server name and with plain IP), but nothing I do gets this account working.

I'd be grateful for any suggestions to get this resolved.

edit retag flag offensive close delete

Comments

1

Copy-paste-instructions from @VDVsx. :)

@dyraig - Could you collect logs ? in

/home/nemo/.config/QtProject/Messageserver.conf

enable file log and add a path for the log, like for example:

[FileLog]
Enabled=1
Path=/home/nemo/Documents/messageserver.log

Then restart the device or just restart messageserver5

systemctl --user stop messageserver5
systemctl --user start messageserver5

Reproduce the problem, send me the log file to mail-logs at jolla dot com and tigeli at jolla dot com. After that turn file log off again by setting "enabled" to 0.Thanks a lot!

tigeli ( 2015-04-03 15:52:12 +0300 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2015-04-07 10:41:35 +0300

dyraig gravatar image

I've sent the requested logs to the developer. From the logs, it could be seen that mail app would successfully log in on the IMAP server, then proceed to retrieve all folders. The account in question has a large number of folders (several thousand, though not all of them subscribed) - and the app simply times out after getting a few hundred folders.

Valerio from Jolla confirmed that this is a known bug - basically, it seems to boil down to the fact that getting the folder list takes so long that the whole "checking credentials" times out. He said that a fix is to be expected in one of the coming updates. Given that this is specific to accounts with lots of folders, I've modified the title of this question to match.

edit flag offensive delete publish link more
0

answered 2015-04-10 16:43:22 +0300

kid gravatar image

Work-around while we wait for the fix.

Thanks to @VDVsx.

edit flag offensive delete publish link more

Comments

I have just tried the workaround (even with 240s = 4min) to no avail. I will re-enable the logging as described above to investigate and report back.

dyraig ( 2015-04-12 22:42:39 +0300 )edit

By now, I've even tried 600s timeout, but still get the timeout message. From the logs (which I've already sent off to Valerio) it seems that it just stops reading folders at some moment well before the timeout time - no idea why.

dyraig ( 2015-04-13 01:21:39 +0300 )edit

I can confirm that the time the account testing takes seems to be exponential with the count of folders on the IMAP server. Here, it would not succeed with a timeout of 900. I was able to succeed only by reducing the amount of folders visible to XLIST when creating the account -- but not everyone is his own e-mail admin.

Maus ( 2015-05-06 15:33:05 +0300 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2015-04-03 15:24:59 +0300

Seen: 332 times

Last updated: Apr 10 '15