mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 08:33:37 +02:00
Small improvement
This commit is contained in:
@@ -107,6 +107,7 @@ import biweekly.ICalendar;
|
||||
|
||||
public class MessageHelper {
|
||||
private boolean ensuredEnvelope = false;
|
||||
private boolean ensuredEnvelopeAll = false;
|
||||
private boolean ensuredBody = false;
|
||||
private MimeMessage imessage;
|
||||
|
||||
@@ -2237,13 +2238,17 @@ public class MessageHelper {
|
||||
}
|
||||
|
||||
private void ensureMessage(boolean body, boolean all) throws MessagingException {
|
||||
if (body ? ensuredBody : ensuredEnvelope)
|
||||
if (body ? ensuredBody : ensuredEnvelopeAll || (ensuredEnvelope && !all))
|
||||
return;
|
||||
|
||||
if (body)
|
||||
ensuredBody = true;
|
||||
else
|
||||
ensuredEnvelope = true;
|
||||
else {
|
||||
if (all)
|
||||
ensuredEnvelopeAll = true;
|
||||
else
|
||||
ensuredEnvelope = true;
|
||||
}
|
||||
|
||||
Log.i("Ensure body=" + body + " all=" + all);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user