This commit is contained in:
M66B 2023-07-23 07:35:28 +02:00
parent 4db26369c7
commit 86a0e9c2eb
2 changed files with 2 additions and 6 deletions

View File

@ -129,7 +129,6 @@ import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress; import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart; import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage; import javax.mail.internet.MimeMessage;
import javax.mail.search.AndTerm;
import javax.mail.search.ComparisonTerm; import javax.mail.search.ComparisonTerm;
import javax.mail.search.FlagTerm; import javax.mail.search.FlagTerm;
import javax.mail.search.HeaderTerm; import javax.mail.search.HeaderTerm;
@ -2146,9 +2145,8 @@ class Core {
if (trash == null) { if (trash == null) {
imessage.setFlag(Flags.Flag.DELETED, true); imessage.setFlag(Flags.Flag.DELETED, true);
expunge(context, ifolder, Arrays.asList(imessage)); expunge(context, ifolder, Arrays.asList(imessage));
} else { } else
EntityOperation.queue(context, message, EntityOperation.MOVE, trash.id); EntityOperation.queue(context, message, EntityOperation.MOVE, trash.id);
}
} }
static boolean deletePart(Part part, Part attachment) throws MessagingException, IOException { static boolean deletePart(Part part, Part attachment) throws MessagingException, IOException {
@ -3104,9 +3102,8 @@ class Core {
if (trash == null) { if (trash == null) {
imessage.setFlag(Flags.Flag.DELETED, true); imessage.setFlag(Flags.Flag.DELETED, true);
expunge(context, ifolder, Arrays.asList(imessage)); expunge(context, ifolder, Arrays.asList(imessage));
} else { } else
EntityOperation.queue(context, message, EntityOperation.MOVE, trash.id); EntityOperation.queue(context, message, EntityOperation.MOVE, trash.id);
}
} }
private static void onSynchronizeMessages( private static void onSynchronizeMessages(

View File

@ -30,7 +30,6 @@ import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.inputmethod.EditorInfo; import android.view.inputmethod.EditorInfo;
import android.widget.Button; import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText; import android.widget.EditText;
import android.widget.TextView; import android.widget.TextView;