9

I have some labels which are logically related. I'd like to filter those and put them in a second inbox by enabling multiple inbox lab feature. Is there a possible way to do that?

Additional info: All the labels start with "AJ"

2 Answers 2

11

You have two choices:

  1. label:AJ-Label-1 label:AJ-Label-2
  2. label:AJ-Label-1 OR label:AJ-Label-2

The first option will perform an AND search, meaning the email must have both labels applied to it. The second option performs an OR search which will match if any of the labels are applied to a message.

The fact that both start with AJ unfortunately doesn't help since labels can't be searched via stemming. You must list both of them explicitly in your query.

Tip: To make it easier to create queries, you should use the search box in Gmail which provides code completion, and then copy and paste the query into the Multiple Inboxes settings.

Note: If your labels contain spaces, replace the space with the - character.

2
  • 1
    Just realized "OR" has to be uppercase; "or" won't work. Mar 28, 2022 at 21:32
  • It doesn't seem that the first choice works anymore...
    – Magne
    Aug 16, 2022 at 15:37
1

You can use gmail labs's Nested Labels feature.

The description copied from labs page

Manage your email by sorting it into a hierarchy of labels. Add slashes (/) to label names to express inheritance. For example, if you want a Home label with two child labels named Kids and Shopping, create the three following labels: Home, Home/Kids and Home/Shopping.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.