Is it possible to write a script/program of some kind to automatically send you an email when someone IM's you?

For example, you put up an away message at home. Then if someone IM's you it will automatically send what they IM'd you to your email address. Then no matter where you are you can check your email and see what people are saying to you.

This isn't very useful, but I just wanted to be able to do that. I got all excited and then realized I didn't know how to program.

Mark