I'm trying to create a gmail filter or something like it to filter on a string in the email body, and if the string is found (but another specified string is not found), follow an unsubscribe link which is in the email body as well, or mute the entire thread in Gmail.
The use case for this is: I want to unsubscribe myself from team-wide Github Pull Request reviews that tag "@-my-team-name". These are all irrelevant to me. However, if my individual Github username is tagged, I don't want to unsubscribe.
I can set a Gmail filter to act on emails that contain my team name and exclude my individual username, but I can't figure out how to take the next step: follow the unsubscribe link to unsubscribe me from the thread or mute the conversation in Gmail.
Simply archiving these matched emails won't work because I also want to avoid emails from the follow-up comments in the thread coming into my inbox.
I also briefly investigated IFTTT, but it doesn't seem to have the ability to parse email content like this.
