I had serious email problems with inbox folders missing on some accounts. I upgraded mariadb to 10.2 and now everything is good. Also,,,,,,,I unchecked keep mail on my computer on my imap settings. Not sure which one fixed the problem but all is good now.