View Single Post
No need for the Applescript, such a facility is already built-in. See the help for Processing Mail messages into actions.