In Outlook I want to find all emails where my email is in the thread (either in cc or as sender or as recipient) that are directed outside of my organization or where there are also people outside of my organization in the thread. How to I perform such query?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Okay, let's craft that Outlook search query. This requires combining conditions for your participation with conditions ensuring at least one external participant.
We'll use Outlook's Advanced Query Syntax (AQS).
The Query:
You need to replace [EMAIL_ADDRESS]with your actual email address andYourDomain.com` with your company's domain name.
code
(from:([EMAIL_ADDRESS]) OR to:([EMAIL_ADDRESS]) OR cc:([EMAIL_ADDRESS])) AND (NOT from:*@YourDomain.com OR NOT to:*@YourDomain.com OR NOT cc:*@YourDomain.com)
Explanation:
(from:([EMAIL_ADDRESS]) OR to:([EMAIL_ADDRESS]) OR cc:([EMAIL_ADDRESS])): This part ensures that your email address is involved in the thread.
from:([EMAIL_ADDRESS]): Finds emails you sent.
to:([EMAIL_ADDRESS]): Finds emails where you are a direct recipient (in the To field).
cc:([EMAIL_ADDRESS]): Finds emails where you are a copied recipient (in the Cc field).
OR: Combines these, so any email meeting at least one of these criteria is included.
AND: This links the first part (your involvement) with the second part (external involvement), requiring both conditions to be true for an email to be included in the results.
(NOT from:*@YourDomain.com OR NOT to:*@YourDomain.com OR NOT cc:*@YourDomain.com): This part identifies emails that involve at least one external address. It works by negating the condition that everyone is internal.
NOT from:*@YourDomain.com: This is true if the sender's email address does not end with @YourDomain.com.
NOT to:*@YourDomain.com: This is true if at least one email address in the To field does not end with @YourDomain.com.
NOT cc:*@YourDomain.com: This is true if at least one email address in the Cc field does not end with @YourDomain.com.
OR: Combines these conditions. If the sender is external, OR if there's an external recipient in the To field, OR if there's an external recipient in the Cc field, this entire part evaluates to true.
How to Use It in Outlook:
Go to your Outlook Mail view.
Click inside the Search bar at the top (it might say "Search Current Mailbox").
Make sure the search scope is set correctly (e.g., "Current Mailbox", "All Mailboxes", or a specific folder). "Current Mailbox" is usually a good starting point.
Copy the query above.
IMPORTANT: Replace [EMAIL_ADDRESS]with your full email address andYourDomain.comwith your organization's email domain (the part after the@`).
Paste the modified query into the Search bar.
Press Enter.
Outlook will then filter your emails to show only those that meet both criteria: you were involved, and at least one external email address was also involved (as sender, recipient, or cc'd).
This query can be quite complex for Outlook to process, especially on very large mailboxes, so it might take some time to return results.