Thought I should share this workflow to search Mail.app
Use the following keywords to search:
emfrom to search the sender's name and email address
em for a general subject + content search
emsubj to search specifically for a subject line
You can download it here. Enjoy!
This version is suitable for both Alfred 3 and Alfred 4.
Compatible with macOS versions up to Mojave. Unfortunately, due to some changes made by Apple in macOS
In macOS Catalina, Apple have removed access for third-party apps to Mail.app results by excluding it from the Spotlight metadata that apps like Alfred can use to return results. As such, the workflow won't return any results, as macOS no longer returns any Mail results.
Here's a thread including responses from an Apple employee explaining what's happened to the Spotlight index. Within this thread, there's a somewhat possible workaround of copying the Mail folder to a different folder wi