|
|
|
@ -16,6 +16,8 @@
|
|
|
|
|
|
|
|
|
|
package com.sun.mail.imap;
|
|
|
|
|
|
|
|
|
|
import android.text.TextUtils;
|
|
|
|
|
|
|
|
|
|
import java.io.*;
|
|
|
|
|
import javax.mail.*;
|
|
|
|
|
import com.sun.mail.imap.protocol.*;
|
|
|
|
@ -29,6 +31,7 @@ import com.sun.mail.iap.ProtocolException;
|
|
|
|
|
|
|
|
|
|
public class IMAPNestedMessage extends IMAPMessage {
|
|
|
|
|
private IMAPMessage msg; // the enclosure of this nested message
|
|
|
|
|
private String encoding;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Package private constructor. <p>
|
|
|
|
@ -36,9 +39,10 @@ public class IMAPNestedMessage extends IMAPMessage {
|
|
|
|
|
* Note that nested messages have no containing folder, nor
|
|
|
|
|
* a message number.
|
|
|
|
|
*/
|
|
|
|
|
IMAPNestedMessage(IMAPMessage m, BODYSTRUCTURE b, ENVELOPE e, String sid) {
|
|
|
|
|
IMAPNestedMessage(IMAPMessage m, String enc, BODYSTRUCTURE b, ENVELOPE e, String sid) {
|
|
|
|
|
super(m._getSession());
|
|
|
|
|
msg = m;
|
|
|
|
|
encoding = enc;
|
|
|
|
|
bs = b;
|
|
|
|
|
envelope = e;
|
|
|
|
|
sectionId = sid;
|
|
|
|
@ -126,7 +130,7 @@ public class IMAPNestedMessage extends IMAPMessage {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getEncoding() throws MessagingException {
|
|
|
|
|
return bs.encoding;
|
|
|
|
|
return (TextUtils.isEmpty(encoding) ? bs.encoding : encoding);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|