只要能取得邮件正文,用正则取URL就可以了啊
提取文本中URL正则:
\b((ftp|https?)://[-\w]+(\.\w[-\w]*)+|(?i:[a-z0-9](?:[-a-z0-9]*[a-z0-9])?\.)+(?-i:com\b|edu\b|biz\b|gov\b|in(?:t|fo)\b|mil\b|net\b|org\b|[a-z][a-z]\b))(:\d+)?(/[^.!,?;"'<>()\[\]{}\s\x7F-\xFF]*(?:[.!,?]+[^.!,?;"'<>()\[\]{}\s\x7F-\xFF]+)*)?
用正则,将url的前面规则就好了,比如((ftp)|(FTP)|(http)|(HTTP)|(https)|(HTTPS))://(*.?)