findFolder
我的问题是,当我尝试使用Web 服务方法获取用户文件夹列表时,如何区分区分文件夹和用户创建的文件夹:
FindFolderType request = new FindFolderType();
request.setTraversal(FolderQueryTraversalType.DEEP);
FolderResponseShapeType folderResponseShapeType = new FolderResponseShapeType();
folderResponseShapeType.setBaseShape(DefaultShapeNamesType.ALL_PROPERTIES);
request.setFolderShape(folderResponseShapeType);
NonEmptyArrayOfBaseFolderIdsType folderIds = new NonEmptyArrayOfBaseFolderIdsType();
DistinguishedFolderIdType folderId = new DistinguishedFolderIdType();
folderId.setId(DistinguishedFolderIdNameType.MSGFOLDERROOT);
folderIds.getFolderIdOrDistinguishedFolderId().add(folderId);
request.setParentFolderIds(folderIds);
//response
Holder<FindFolderResponseType> findFolderResult = new Holder<FindFolderResponseType>();
addHandlers(port);
port.findFolder(
request,
getImpersonation(smtpAddress),
getSerializedSecurityContextType(),
MAILBOX_CULTURE,
getServerVersion(),
findFolderResult,
serverVersion);
我看不到这两种类型的文件夹之间有任何区别。
谢谢