Extract categories and links from mail subject and body.