No problem.
I approached (and slightly approximated) your macro in a simple AppleScript and am only seeing an issue in one case: where the title begins with an emoji (sadly being used in email subject lines nowadays - Grrrr).
Does this look about right?