Problem statement: One of my customers uses Bitbucket for their code, and I have a noisy mailbox.
Instead of writing even more filters¹, I opted to use the Mailmate Smart Mailbox feature to get a better signal about/for things from Bitbucket
Here’s a regex I used:
${subject.body/Pull request #([0-9]+): (.*) \(.*\/(.*)\).*/${3} - #${1} ${2}/}
It works pretty well.
And credit where credit is due: I first saw pbrooko do this, so the idea inspiration is there.
¹) I find filters to be cause for problems in experience across all my devices and interfaces