you'd probably have to do some ugly things within the AIM protocol, which is closed, so back-engineering it is difficult. I'd suggest you write your project (at least initially) as a plugin for
gAIM written in perl.
You'd probably have more luck that way.
Edit: Screwed up my hyperlink. Fixed!
