|
|
@ -107,6 +107,7 @@ import biweekly.ICalendar;
|
|
|
|
|
|
|
|
|
|
|
|
public class MessageHelper {
|
|
|
|
public class MessageHelper {
|
|
|
|
private boolean ensuredEnvelope = false;
|
|
|
|
private boolean ensuredEnvelope = false;
|
|
|
|
|
|
|
|
private boolean ensuredEnvelopeAll = false;
|
|
|
|
private boolean ensuredBody = false;
|
|
|
|
private boolean ensuredBody = false;
|
|
|
|
private MimeMessage imessage;
|
|
|
|
private MimeMessage imessage;
|
|
|
|
|
|
|
|
|
|
|
@ -2237,13 +2238,17 @@ public class MessageHelper {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void ensureMessage(boolean body, boolean all) throws MessagingException {
|
|
|
|
private void ensureMessage(boolean body, boolean all) throws MessagingException {
|
|
|
|
if (body ? ensuredBody : ensuredEnvelope)
|
|
|
|
if (body ? ensuredBody : ensuredEnvelopeAll || (ensuredEnvelope && !all))
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
if (body)
|
|
|
|
if (body)
|
|
|
|
ensuredBody = true;
|
|
|
|
ensuredBody = true;
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
if (all)
|
|
|
|
|
|
|
|
ensuredEnvelopeAll = true;
|
|
|
|
else
|
|
|
|
else
|
|
|
|
ensuredEnvelope = true;
|
|
|
|
ensuredEnvelope = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Log.i("Ensure body=" + body + " all=" + all);
|
|
|
|
Log.i("Ensure body=" + body + " all=" + all);
|
|
|
|
|
|
|
|
|
|
|
|