Enable users to attempt to recover from a scan error.

Report an IMAP service problem when a scan error occurs instead of an
account problem, so a retry button is presented.
This commit is contained in:
Michael James Gratton 2018-08-02 20:27:14 +10:00
parent 9ba9417d72
commit f991fa5f46

View file

@ -3038,10 +3038,13 @@ public class GearyController : Geary.BaseObject {
private void on_scan_error(Geary.App.ConversationMonitor monitor, Error err) {
// XXX determine the problem better here
Geary.AccountInformation account =
monitor.base_folder.account.information;
report_problem(
new Geary.AccountProblemReport(
new Geary.ServiceProblemReport(
Geary.ProblemType.GENERIC_ERROR,
monitor.base_folder.account.information,
account,
account.imap,
err
)
);