mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
parent
4fbb29df2e
commit
7bcb7bf495
1 changed files with 0 additions and 18 deletions
|
@ -575,17 +575,6 @@ class Core {
|
||||||
return uid;
|
return uid;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void noop(IMAPFolder ifolder) throws MessagingException {
|
|
||||||
// https://tools.ietf.org/html/rfc3501#section-6.3.11
|
|
||||||
ifolder.doCommand(new IMAPFolder.ProtocolCommand() {
|
|
||||||
@Override
|
|
||||||
public Object doCommand(IMAPProtocol protocol) throws ProtocolException {
|
|
||||||
protocol.noop();
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void onSeen(Context context, JSONArray jargs, EntityFolder folder, EntityMessage message, IMAPFolder ifolder) throws MessagingException, JSONException {
|
private static void onSeen(Context context, JSONArray jargs, EntityFolder folder, EntityMessage message, IMAPFolder ifolder) throws MessagingException, JSONException {
|
||||||
// Mark message (un)seen
|
// Mark message (un)seen
|
||||||
DB db = DB.getInstance(context);
|
DB db = DB.getInstance(context);
|
||||||
|
@ -756,9 +745,6 @@ class Core {
|
||||||
// Add message
|
// Add message
|
||||||
ifolder.appendMessages(new Message[]{imessage});
|
ifolder.appendMessages(new Message[]{imessage});
|
||||||
|
|
||||||
// Send no operation
|
|
||||||
noop(ifolder);
|
|
||||||
|
|
||||||
// Delete previous (external) version
|
// Delete previous (external) version
|
||||||
if (message.uid != null) {
|
if (message.uid != null) {
|
||||||
db.message().setMessageUid(message.id, null);
|
db.message().setMessageUid(message.id, null);
|
||||||
|
@ -859,11 +845,7 @@ class Core {
|
||||||
icopies.add(icopy);
|
icopies.add(icopy);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add message
|
|
||||||
itarget.appendMessages(icopies.toArray(new Message[0]));
|
itarget.appendMessages(icopies.toArray(new Message[0]));
|
||||||
|
|
||||||
// Send no operation
|
|
||||||
noop(itarget);
|
|
||||||
} else {
|
} else {
|
||||||
for (Message imessage : map.keySet()) {
|
for (Message imessage : map.keySet()) {
|
||||||
Log.i("Move seen=" + seen + " unflag=" + unflag + " flags=" + imessage.getFlags());
|
Log.i("Move seen=" + seen + " unflag=" + unflag + " flags=" + imessage.getFlags());
|
||||||
|
|
Loading…
Reference in a new issue