Storing chat and SMS – is it possible?

A thought. Given the amount of IM and chat clients, how do we store any knowledge across that is being transferred? Is it be lost or can you “dump” the logs for later use?

A similar thing must be happening with SMS. I would have thought that the providers store these but can we get hold of them? Are there interfaces to dump the information for personal use or is it only in companies data stores?