Thanks for this. You gave me a great idea.
I basically copied your talktoamor function and set it up as a small couple line perl program to notify me through kmail when I have mail. This was a great use for perl!