I setup Mail.app to pull GMail data . I realized that I cannot search within my GoogleTalk chat history. Is there a way or a hack to get the chat history to my folders that get pulled as well so that my search results will include information from Chat as well.
Zevlag is right. You're not going to be able to do precisely what you were after (true IMAP syncing of chat logs). But here's a couple of things that you can:
First, you could download your chat logs using this method: http://freshhorse.wordpress.com/2011/07/29/leaving-gmail-and-bringing-your-chats-with-you/
Second you could look into Google's APIs for a way to get at your chats. Here's one example of a script attempting this:
Sorry there isn't a way to do just what you want.
It is not possible. It was partially possible once a time, but has been discontinued due to not working properly.