I had made a similar product long back description as below.
This is a Public Instant Message Archiver. The product aims at huge corporate clients wherein it acts as a sniffer in the network .It sniffs and archives messages of Public IM including Yahoo, MSN, AIM, ICQ . The complete protocol was recreated of each IM’s. The project uses PCAP (open source) to sniff packets from the network.