Extract links from emails

I’m an avid Tumblr user, with several different accounts. I have rules in Mail.app to sort the various kinds of automatic notifications Tumblr sends out to smart folders and so on, but what I’d really like to be able to do is extract the URL from emails which indicate a posting I’ve made has been reposted by another user.

As it is, I have to manually open each “your posting was reblogged by…” email and click the link, but I can’t help thinking it should be possible to add a “Run Applescript” rule, which either extracts the link and adds it to a text file or opens the link in a new Safari tab.

If anyone can help, it’d be much appreciated.