|
|
|
@ -338,14 +338,18 @@ public class ServiceSynchronize extends LifecycleService {
|
|
|
|
|
EntityFolder archive = db.folder().getFolderByType(message.account, EntityFolder.ARCHIVE);
|
|
|
|
|
if (archive == null)
|
|
|
|
|
archive = db.folder().getFolderByType(message.account, EntityFolder.TRASH);
|
|
|
|
|
if (archive != null)
|
|
|
|
|
if (archive != null) {
|
|
|
|
|
EntityOperation.queue(db, message, EntityOperation.SEEN, true);
|
|
|
|
|
EntityOperation.queue(db, message, EntityOperation.MOVE, archive.id);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case "trash":
|
|
|
|
|
EntityFolder trash = db.folder().getFolderByType(message.account, EntityFolder.TRASH);
|
|
|
|
|
if (trash != null)
|
|
|
|
|
if (trash != null) {
|
|
|
|
|
EntityOperation.queue(db, message, EntityOperation.SEEN, true);
|
|
|
|
|
EntityOperation.queue(db, message, EntityOperation.MOVE, trash.id);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case "ignore":
|
|
|
|
|