Setting up General Email (IMAP, SMTP) fails

So are we taking over bug reports now manually?
Could be a time consuming and/or irritating task if you search for a solution.

We can also mention:
general email accounts do not connect after having been restored from a backup… and so on…

1 Like

@peterleinchen Correct! The problem with restoring from backup is severe … It rendered my phone unusable. I manually removed General Email accounts from my backups once I had to restore the phone. And I also suspect this same bug to be a probable cause.

2 Likes

I can’t comment on the main bug, but for restoring from backup, my recollection is that the functionality was changed so that account passwords are no longer stored in the backup (as they possibly were at one point). So after restoring from a backup, it’s necessary to enter the passwords for the various accounts again in order for them to work correclty.

It may be you’re talking about something else in relation to backups, but I thought it worth mentioning just in case.

3 Likes

@flypig
That may be so (the password thing) but the bug is that there is no chance to get your mail account to connect even when fiddling with settings and re-entering password.

I agree with both of you, @peterleinchen and @flypig: the trouble with restoring from backups is worth a bug report, but it’s probably not good to join it into this topic.

Absolutely right, and I asked how to proceed with these existing, open, not-solved bug reports.
As soon to take over may create a huge lap where cluttering and opening double posts will happen.

Hi.
I just installed last Sailfish OS on a XA2 (Sailfish_OS-Jolla-3.3.0.16-h3113-0.0.7.23) and unfortunately I’m not able to set up any mail account.
Even with my GMail account, after getting the right credentials from GMail,
I could not get Email displaying anything else than a waiting screen.
Is there any means to make it work ?
Thanks.

Well. I reset the phone (reset to factory settings) and it worked.

Wow, after some years of struggling with this (Xperia X and X10), finally doing proper research and coming across this thread, as suggested above I tried the following:

  1. fill in credentials (add account -> general email)
  2. click accept
  3. wait 60 seconds and then reboot

I can even add a second (and presumably third) emailaddress in the same way without having to repeat the same process.

Thanks a lot!

2 Likes

You’re welcome, and I am glad it helped. Unfortunately, this is still not reproducible easily and thus not of relevance for Jolla.

Same issue here after updating to 3.4.0.24.

Same here, as posted here: Can't creat many kinds of accounts

Which are the packages needed for e-mail accounts? Maybe a reinstallation might help.

[nemo@Sailfish ~]$ rpm -qa | grep mail
jolla-email-1.0.7.4-1.29.1.jolla.armv7hl
buteo-sync-plugins-email-0.1.6-1.8.1.jolla.armv7hl
jolla-settings-accounts-extensions-email-0.4.31.1-1.26.1.jolla.armv7hl
jolla-email-all-translations-pack-0.7.4-1.9.4.jolla.noarch
nemo-qml-plugin-email-qt5-0.6.13-1.21.10.jolla.armv7hl
jolla-email-settings-1.0.7.4-1.29.1.jolla.armv7hl
sailfish-components-email-qt5-0.1.3-1.4.1.jolla.armv7hl

I’d suggest jolla-email-settings and jolla-settings-accounts-extensions-email, but I really doubt it’ll make any difference. This whole bug is obscure, it’s not reproducible easily or consistently at all but by us few. If I had to take a pick, I’d suspect libqmfmessageserver1-qt5 as the source of our problems. But again, it’s obscure.

Don’t know, if this might help

Oct 17 19:54:45 Xperia10 estart[14159]: [W] unknown:0 - writeProfileFile() called, forcing disk write: “/home/nemo/.
cache/msyncd/sync/syncemail-53.xml”
Oct 17 19:54:45 Xperia10 estart[14159]: [W] unknown:-1 - file:///usr/share/accounts/ui/EmailCryptoSection.qml: File
not found

Workaround to add and syncing of email accounts

  1. removed email related packages
jolla-email
buteo-sync-plugins-email
jolla-settings-accounts-extensions-email
jolla-email-all-translations-pack
nemo-qml-plugin-email-qt5
jolla-email-settings
libqmfmessageserver1-qt5
  1. reboot and removed content in /home/nemo/.qmf/mail/*
  2. Reinstalled packages above
  3. Used method from @border to add first account
    4.1) fill in credentials
    4.2) click accept
    4.3) wait 60 seconds and reboot
  4. Email syncing is again possible (only manually, but that’s a gain)
  5. further email accounts can be added the "norma"l way

I’ve spotted some memory corruption inside messageserver5. I suspect that a lot of the mail-related problems could go away if Jolla devs ran the e-mail system via Valgrind.

5 Likes

This worked for me as well. Fill in credentials, accept and wait until the error message (maybe a minute extra), reboot. Don’t go back or select “Skip”.

2 Likes

Having this issue as well with a freshly flashed X10 Plus on Sailfish 4.2. I will try the “reboot-workaround”. By the way it’s kind of embarrassing if you finally convince family members switching to Sailfish and then they are already stranded at setting up their mail account.

Yesterday, I test-drove SFOS on my Pinephone again (the initial setup with encryption of /home shreddered my Mobian installation on internal storage, but otherwise very impressive) and restored a backup from a J1 onto it. Lo and behold, I did not experience any problem whatsoever with accounts.
I am sure this bug still lingers somewhere but is extremely difficult to reproduce in a way that helps developers to find its roots.