|
@ -521,6 +521,11 @@ public class ServiceSynchronize extends LifecycleService { |
|
|
synchronizeMessage(ServiceSynchronize.this, folder, ifolder, (IMAPMessage) imessage, false); |
|
|
synchronizeMessage(ServiceSynchronize.this, folder, ifolder, (IMAPMessage) imessage, false); |
|
|
} catch (MessageRemovedException ex) { |
|
|
} catch (MessageRemovedException ex) { |
|
|
Log.w(Helper.TAG, folder.name + " " + ex + "\n" + Log.getStackTraceString(ex)); |
|
|
Log.w(Helper.TAG, folder.name + " " + ex + "\n" + Log.getStackTraceString(ex)); |
|
|
|
|
|
} catch (IOException ex) { |
|
|
|
|
|
if (ex.getCause() instanceof MessageRemovedException) |
|
|
|
|
|
Log.w(Helper.TAG, folder.name + " " + ex + "\n" + Log.getStackTraceString(ex)); |
|
|
|
|
|
else |
|
|
|
|
|
throw ex; |
|
|
} |
|
|
} |
|
|
EntityOperation.process(ServiceSynchronize.this); // download small attachments |
|
|
EntityOperation.process(ServiceSynchronize.this); // download small attachments |
|
|
} catch (Throwable ex) { |
|
|
} catch (Throwable ex) { |
|
@ -583,6 +588,11 @@ public class ServiceSynchronize extends LifecycleService { |
|
|
EntityOperation.process(ServiceSynchronize.this); // download small attachments |
|
|
EntityOperation.process(ServiceSynchronize.this); // download small attachments |
|
|
} catch (MessageRemovedException ex) { |
|
|
} catch (MessageRemovedException ex) { |
|
|
Log.w(Helper.TAG, folder.name + " " + ex + "\n" + Log.getStackTraceString(ex)); |
|
|
Log.w(Helper.TAG, folder.name + " " + ex + "\n" + Log.getStackTraceString(ex)); |
|
|
|
|
|
} catch (IOException ex) { |
|
|
|
|
|
if (ex.getCause() instanceof MessageRemovedException) |
|
|
|
|
|
Log.w(Helper.TAG, folder.name + " " + ex + "\n" + Log.getStackTraceString(ex)); |
|
|
|
|
|
else |
|
|
|
|
|
throw ex; |
|
|
} |
|
|
} |
|
|
} catch (Throwable ex) { |
|
|
} catch (Throwable ex) { |
|
|
Log.e(Helper.TAG, folder.name + " " + ex + "\n" + Log.getStackTraceString(ex)); |
|
|
Log.e(Helper.TAG, folder.name + " " + ex + "\n" + Log.getStackTraceString(ex)); |
|
@ -1282,6 +1292,12 @@ public class ServiceSynchronize extends LifecycleService { |
|
|
unchanged++; |
|
|
unchanged++; |
|
|
} catch (MessageRemovedException ex) { |
|
|
} catch (MessageRemovedException ex) { |
|
|
Log.w(Helper.TAG, folder.name + " " + ex + "\n" + Log.getStackTraceString(ex)); |
|
|
Log.w(Helper.TAG, folder.name + " " + ex + "\n" + Log.getStackTraceString(ex)); |
|
|
|
|
|
} catch (IOException ex) { |
|
|
|
|
|
// Getting attachments |
|
|
|
|
|
if (ex.getCause() instanceof MessageRemovedException) |
|
|
|
|
|
Log.w(Helper.TAG, folder.name + " " + ex + "\n" + Log.getStackTraceString(ex)); |
|
|
|
|
|
else |
|
|
|
|
|
throw ex; |
|
|
} |
|
|
} |
|
|
EntityOperation.process(this); // download small attachments |
|
|
EntityOperation.process(this); // download small attachments |
|
|
|
|
|
|
|
|