|
@ -1301,10 +1301,12 @@ public class ServiceSynchronize extends LifecycleService { |
|
|
|
|
|
|
|
|
if (imessage.isExpunged()) { |
|
|
if (imessage.isExpunged()) { |
|
|
Log.i(Helper.TAG, folder.name + " expunged uid=" + uid); |
|
|
Log.i(Helper.TAG, folder.name + " expunged uid=" + uid); |
|
|
|
|
|
imessage.invalidateHeaders(); |
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |
|
|
if (imessage.isSet(Flags.Flag.DELETED)) { |
|
|
if (imessage.isSet(Flags.Flag.DELETED)) { |
|
|
Log.i(Helper.TAG, folder.name + " deleted uid=" + uid); |
|
|
Log.i(Helper.TAG, folder.name + " deleted uid=" + uid); |
|
|
|
|
|
imessage.invalidateHeaders(); |
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -1395,6 +1397,9 @@ public class ServiceSynchronize extends LifecycleService { |
|
|
message.write(context, helper.getHtml()); |
|
|
message.write(context, helper.getHtml()); |
|
|
Log.i(Helper.TAG, folder.name + " added id=" + message.id + " uid=" + message.uid); |
|
|
Log.i(Helper.TAG, folder.name + " added id=" + message.id + " uid=" + message.uid); |
|
|
|
|
|
|
|
|
|
|
|
// Free memory |
|
|
|
|
|
imessage.invalidateHeaders(); |
|
|
|
|
|
|
|
|
int sequence = 0; |
|
|
int sequence = 0; |
|
|
for (EntityAttachment attachment : helper.getAttachments()) { |
|
|
for (EntityAttachment attachment : helper.getAttachments()) { |
|
|
sequence++; |
|
|
sequence++; |
|
|