|
|
@ -982,7 +982,7 @@ public class ServiceSynchronize extends LifecycleService {
|
|
|
|
db.beginTransaction();
|
|
|
|
db.beginTransaction();
|
|
|
|
message = synchronizeMessage(
|
|
|
|
message = synchronizeMessage(
|
|
|
|
ServiceSynchronize.this,
|
|
|
|
ServiceSynchronize.this,
|
|
|
|
folder, ifolder, (IMAPMessage) imessage, false, false);
|
|
|
|
folder, ifolder, (IMAPMessage) imessage, false);
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
db.endTransaction();
|
|
|
|
db.endTransaction();
|
|
|
@ -1069,7 +1069,7 @@ public class ServiceSynchronize extends LifecycleService {
|
|
|
|
db.beginTransaction();
|
|
|
|
db.beginTransaction();
|
|
|
|
message = synchronizeMessage(
|
|
|
|
message = synchronizeMessage(
|
|
|
|
ServiceSynchronize.this,
|
|
|
|
ServiceSynchronize.this,
|
|
|
|
folder, ifolder, (IMAPMessage) e.getMessage(), false, false);
|
|
|
|
folder, ifolder, (IMAPMessage) e.getMessage(), false);
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
db.endTransaction();
|
|
|
|
db.endTransaction();
|
|
|
@ -2136,7 +2136,7 @@ public class ServiceSynchronize extends LifecycleService {
|
|
|
|
EntityMessage message = synchronizeMessage(
|
|
|
|
EntityMessage message = synchronizeMessage(
|
|
|
|
this,
|
|
|
|
this,
|
|
|
|
folder, ifolder, (IMAPMessage) isub[j],
|
|
|
|
folder, ifolder, (IMAPMessage) isub[j],
|
|
|
|
false, true);
|
|
|
|
false);
|
|
|
|
ids[from + j] = message.id;
|
|
|
|
ids[from + j] = message.id;
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|
} catch (MessageRemovedException ex) {
|
|
|
|
} catch (MessageRemovedException ex) {
|
|
|
@ -2219,7 +2219,7 @@ public class ServiceSynchronize extends LifecycleService {
|
|
|
|
static EntityMessage synchronizeMessage(
|
|
|
|
static EntityMessage synchronizeMessage(
|
|
|
|
Context context,
|
|
|
|
Context context,
|
|
|
|
EntityFolder folder, IMAPFolder ifolder, IMAPMessage imessage,
|
|
|
|
EntityFolder folder, IMAPFolder ifolder, IMAPMessage imessage,
|
|
|
|
boolean browsed, boolean full) throws MessagingException, IOException {
|
|
|
|
boolean browsed) throws MessagingException, IOException {
|
|
|
|
long uid = ifolder.getUID(imessage);
|
|
|
|
long uid = ifolder.getUID(imessage);
|
|
|
|
|
|
|
|
|
|
|
|
if (imessage.isExpunged()) {
|
|
|
|
if (imessage.isExpunged()) {
|
|
|
@ -2412,7 +2412,7 @@ public class ServiceSynchronize extends LifecycleService {
|
|
|
|
" keywords=" + TextUtils.join(" ", keywords));
|
|
|
|
" keywords=" + TextUtils.join(" ", keywords));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (message.ui_hide && full) {
|
|
|
|
if (message.ui_hide && db.operation().getOperationCount(folder.id, message.id) == 0) {
|
|
|
|
update = true;
|
|
|
|
update = true;
|
|
|
|
message.ui_hide = false;
|
|
|
|
message.ui_hide = false;
|
|
|
|
Log.i(folder.name + " updated id=" + message.id + " uid=" + message.uid + " unhide");
|
|
|
|
Log.i(folder.name + " updated id=" + message.id + " uid=" + message.uid + " unhide");
|
|
|
|