'I want to read "local archive" or "In-place archive" from Office 365 with javax mail

I can read INBOX With javax.mail from office 365:

Session session = Session.getInstance(props);
Store store = session.getStore("imaps");
store.connect("outlook.office365.com", "user@mydomain", "mypass");
Folder[] allFolders = store.getDefaultFolder().list();
for(Folder folder: allFolders){
    System.out.println(" root subfolder: " + folder.getName());
}

But, it's not possible to read the "local archive" or "in-place archive" folder. I only read root subfolder: example INBOX

I appreciate the help.



Solution 1:[1]

Do you mean something like this ?

const myData = [{name:"John Miller",age:33,location:"Chicago"},{name:"Jane Doe",age:78,location:"Lansing"},{name:"Jamie Stevens",age:21,location:"San Diego"}];

function returnText() {
 let input = document.getElementById('searchBar').value.toLowerCase();

 let filteredNames = myData.filter((e) => {
  return Object.values(e).some((value) => {
   return value.toString().toLowerCase().includes(input);
  });
 });

 console.log(filteredNames);
 };
<input type="text" name="searchBar" id="searchBar" value="John Miller">
<button onclick="returnText()">Submit</button>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1