}
return results;
}
private Folder getAllItemsFolder() throws Exception {
final FolderId rootFolderId = new FolderId(WellKnownFolderName.Root);
final FolderView folderView = new FolderView(MAX_RESULTS);
folderView.setTraversal(FolderTraversal.Shallow);
final SearchFilter searchFilter1 = new SearchFilter.IsEqualTo(PR_ALL_FOLDERS, "2");
final SearchFilter searchFilter2 = new SearchFilter.IsEqualTo(FolderSchema.DisplayName, "allitems");