From f991fa5f466368af752ed4bb719d250e30782cdc Mon Sep 17 00:00:00 2001 From: Michael James Gratton Date: Thu, 2 Aug 2018 20:27:14 +1000 Subject: [PATCH] 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. --- src/client/application/geary-controller.vala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/client/application/geary-controller.vala b/src/client/application/geary-controller.vala index dc50b124..69860bc5 100644 --- a/src/client/application/geary-controller.vala +++ b/src/client/application/geary-controller.vala @@ -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 ) );