The Dangers of Deleting Microsoft Visual C++ Redistributable Libraries
Gmail is one of the most widely used email clients in the entire world. If you frequently use Gmail, then you will find that using Gmail Filter is beneficial for you. It makes it easier and quicker for you to find the specific mail you're looking for. In this article, I will be explaining to you how to use the "And", "Or", and "Not" conditions in Gmail Filter.
These (AND, OR, NOT) conditions/operations are logical operators. Conditions are statements that help the user to make decision-based on multiple expressions.
Let's discuss them one by one.
OR means at least one of the conditions is true.
In Gmail, we can use three symbols representing Or Condition and they are:
Suppose you want to search all mail sent by Mail Id email@example.com OR firstname.lastname@example.org then type :
You can even use 3 or 4 or many conditions like
But the cleanness one and my favorite is using the curly bracket as shown below.
If you want to get particular mail to send by you to recipients.
Find all the mail between two Dates:
This will provide you with all the mail from 2021/02/01 to 2022/01/02
If you want to filter among multiple words then we need to use a quotation, as shown below.
can type below.
You can look at below example:
This will find out email send from email address starts with "abc" and ends with "@ourtechroom.com".
Here * indicates any character in between.
NOT conditions make true statement to false statement and false statement to true statement.
For the 'not' condition you can simply use the '-' symbol.
Example 1: Filter for finding those mail except send to "email@example.com" look as below:
Example 2: Suppose you want to forward all messages send to the account except say firstname.lastname@example.org and email@example.com then your Gmail filters look like this.
Find all message except the subject that contains "spam" and send to "firstname.lastname@example.org"
Note here wildcard is exclaimation sign(!)
AND means every condition is true.
We are using AND condition knowingly and unknowingly. Let's look at the example of popularly used AND Condition in Gmail Filter.
1) Find unread emails from the inbox
2) Find the emails either in the inbox or the spam.
label:spam OR label:inbox
3) Find emails only send to me
Here, we are requesting mail sent to me and not to any bcc and cc recipients.
4) Get All unread messages except email@example.com and firstname.lastname@example.org
5) Using Wildcard along with AND condition
This filter will find the emails that are sent to "email@example.com", and have the word "msg" in the subject and contain the string "[*1]" in the message body.
We can take the help of AND and OR Condition operators like the below:
This query will include all mail that has a MyLabel1 label and exclude mail having an inbox label and MyOldBadLabel1.