use of com.zimbra.cs.mailclient.imap.Flags in project zm-mailbox by Zimbra.
the class ImapFolderSync method updateImapTrashFolderId.
private void updateImapTrashFolderId(ListData ld) throws ServiceException {
Flags flags = ld.getFlags();
if (flags.isSet("\\Trash") && ds.getImapTrashFolderId() != localFolder.getId()) {
Map<String, Object> attrs = new HashMap<String, Object>();
attrs.put(Provisioning.A_zimbraDataSourceImapTrashFolderId, localFolder.getId());
ds.getProvisioning().modifyDataSource(ds.getAccount(), ds.getId(), attrs);
}
}
Aggregations