My guess is that you'd have to find out how exactly AIM receives the messages and when/how the notification is sent out to take it in.