I have this working, however if two projects have similar but different names the user might get unexpected behavior.
In my case, I have a project named "Japan" and also one named "Learning Japanese". When I emailed with the project name of "Japan", it was placed in the "Learning Japanese" project. I swapped the order of the two, and that worked - the project was correctly placed in the "Japan" project.
It seems that script matches the first possible string, instead of the exact match.