Search in sources :

Example 1 with ImapFolder

use of com.android.voicemail.impl.mail.store.ImapFolder in project android_packages_apps_Dialer by LineageOS.

the class ImapHelper method openImapFolder.

private ImapFolder openImapFolder(String modeReadWrite) {
    try {
        if (mImapStore == null) {
            return null;
        }
        ImapFolder folder = new ImapFolder(mImapStore, ImapConstants.INBOX);
        folder.open(modeReadWrite);
        return folder;
    } catch (MessagingException e) {
        LogUtils.e(TAG, e, "Messaging Exception");
    }
    return null;
}
Also used : ImapFolder(com.android.voicemail.impl.mail.store.ImapFolder) MessagingException(com.android.voicemail.impl.mail.MessagingException)

Aggregations

MessagingException (com.android.voicemail.impl.mail.MessagingException)1 ImapFolder (com.android.voicemail.impl.mail.store.ImapFolder)1