mirror of https://github.com/M66B/FairEmail.git
Cleanup
This commit is contained in:
parent
4db26369c7
commit
86a0e9c2eb
|
@ -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(
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue