I'm not sure what you've done or what the problem is. But commhistory-tool is open-sourced. here you go: https://gitorious.org/commhistory/li...story-tool.cpp