Search code examples
google-apps-scriptgmail

Is it possible to automatically apply a label if another email with same sender has label


In Gmail, is it possible to create a filter to automatically applies a label to an email if another email with the same sender already has this label.

For instance, sssuming I have an email from [email protected] with label MyLabelA, can I create a rule that will apply the same label to another email from [email protected]? Note that the label MyLabelA will be applied to hundreds of emails with multiple recipients and I can't use [email protected] directly to define the filter.

I have seen this question but I am wondering if there is a way of achieving this without writing a script.


Solution

  • From the question:

    I have seen this question but I am wondering if there is a way of achieving this without writing a script.

    Gmail filters are not able to assign a label based on information of other email messages, so no, it's not possible to assign a label using built-in features.

    Reference