Search in sources :

Example 1 with RecordIMAPSessionRequest

use of com.zimbra.soap.mail.message.RecordIMAPSessionRequest in project zm-mailbox by Zimbra.

the class ZMailbox method recordImapSession.

public void recordImapSession(ItemIdentifier folderId) throws ServiceException {
    RecordIMAPSessionRequest req = new RecordIMAPSessionRequest(folderId.toString());
    RecordIMAPSessionResponse resp = invokeJaxb(req);
    String folderUuid = resp.getFolderUuid();
    int lastItemId = resp.getLastItemId();
    ZFolder folder = this.getFolderByUuid(folderUuid);
    if (folder != null) {
        folder.updateImapRECENTCutoff(lastItemId);
    }
}
Also used : RecordIMAPSessionRequest(com.zimbra.soap.mail.message.RecordIMAPSessionRequest) RecordIMAPSessionResponse(com.zimbra.soap.mail.message.RecordIMAPSessionResponse)

Aggregations

RecordIMAPSessionRequest (com.zimbra.soap.mail.message.RecordIMAPSessionRequest)1 RecordIMAPSessionResponse (com.zimbra.soap.mail.message.RecordIMAPSessionResponse)1