Any clue if it is possible, and if so how to check for a message in your inbox for a particular subject and then write the message to a text file somewhere on your hard drive?

Please only replies from people that have an idea how to do it. No "check the object browser" type responses.

Thanks.