I want to ask a similar question like this one, but for newer Outlook versions.
Within an email account, I can search for specific messages which are in the folder with the name "folder name" with this command:
folder:[folder name] received:this year
For example, if the folder name is "Sent", then the search text is folder:Sent received:this year
Now, I want to seach in the folders "Sent" and "Spam" at the same time with the same "received" criteria. What do I need to type into the search bar?