As far as I know this is NOT possible.You can get the first and the last message of a thread, but not the whole thread.Regarding the variables for emails, take a look at this great article at the site of @[deleted]:http://tmib.net/osticket-191-email-template-variables