Apple mail locate selected email in gmail?

Hi guys

this is a bit out there, but anyone knows per chance of a way to create a macro that will locate the current selected email in apple mail in gmail? Any ideas very welcome

p.s the rationale is to create email filters for reoccurring spam at the gmail level...

thx

Z

It's not perfect but AppleScript could pull the subject line of the selected email in Apple Mail and then you could open a search in Gmail for that subject line. Chances are very high that it would return the message you're looking for.

thx @vincent_ardern!

that helped a lot!

this is what i came up with in case anyone else is interested:
(i know there are probably much more efficient ways of doing it..suggestions welcome :))

thx again

Z