extracts URLs from correctly-encoded MIME email messages or plain text
https://www.memoryhole.net/~kyle/extract_url/