Redirect email script

I created an ecard system that lets people send nice ecards (http://www.logica3cards.com), but, unfortunately, when an ecard has a hard time getting to someone, the bounceback comes to me rather than the ecard sender.

I’d like to create a script that fixes this problem. It would search the failed email message for the email address that appears after the words “Reply-To:” and forwards the failed email to that email address. I could then have this script run when a failed email comes in using my Mail app.

I’m more of a php programmer and don’t know much about AppleScript :frowning: I’ve tried creating something with no success.

Any ideas?

Thanks!