Search in sources :

Example 1 with MimeMessage

use of com.android.voicemail.impl.mail.internet.MimeMessage in project android_packages_apps_Dialer by LineageOS.

the class ImapHelper method convertToImapMessages.

private Message[] convertToImapMessages(List<Voicemail> voicemails) {
    Message[] messages = new Message[voicemails.size()];
    for (int i = 0; i < voicemails.size(); ++i) {
        messages[i] = new MimeMessage();
        messages[i].setUid(voicemails.get(i).getSourceData());
    }
    return messages;
}
Also used : Message(com.android.voicemail.impl.mail.Message) MimeMessage(com.android.voicemail.impl.mail.internet.MimeMessage) MimeMessage(com.android.voicemail.impl.mail.internet.MimeMessage)

Example 2 with MimeMessage

use of com.android.voicemail.impl.mail.internet.MimeMessage in project android_packages_apps_Dialer by MoKee.

the class ImapHelper method convertToImapMessages.

private Message[] convertToImapMessages(List<Voicemail> voicemails) {
    Message[] messages = new Message[voicemails.size()];
    for (int i = 0; i < voicemails.size(); ++i) {
        messages[i] = new MimeMessage();
        messages[i].setUid(voicemails.get(i).getSourceData());
    }
    return messages;
}
Also used : Message(com.android.voicemail.impl.mail.Message) MimeMessage(com.android.voicemail.impl.mail.internet.MimeMessage) MimeMessage(com.android.voicemail.impl.mail.internet.MimeMessage)

Aggregations

Message (com.android.voicemail.impl.mail.Message)2 MimeMessage (com.android.voicemail.impl.mail.internet.MimeMessage)2