0

我正在寻找一个 .NET/JAVA 免费或开源垃圾邮件检测器,可通过产生良好结果的 API 访问。我会考虑为实现这一目标的优质服务付费,但理想情况下,我想开源。有没有人有任何好的经验或建议?

理想情况下,我会在内存中获取消息的文本/标记,我会从这个 API 调用一个方法,它会返回一个布尔值或垃圾邮件的可能性。

快速谷歌搜索产生了一些结果,但非常感谢有经验的用户分享。

4

2 回答 2

4

查看 CodePlex 上的Akismet .NET 2.0 Api

下面是 CodePlex 页面中的一个示例:

// Verify key
Akismet api = new Akismet("key", "http://url.com", "Test/1.0");
if (!api.VerifyKey()) throw new Exception("Key could not be verified.");

// Create comment object for testing
AkismetComment comment = new AkismetComment();
comment.Blog = "http://joel.net";
comment.UserIp = "147.202.45.202";
comment.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)";
comment.CommentContent = "<a href=\"http://someone.finderinn.com\">find someone</a>";
comment.CommentType = "comment";
comment.CommentAuthor = "someone";
comment.CommentAuthorEmail = "backthismailtojerry@fastmail.fm";
comment.CommentAuthorUrl = "http://someone.finderrin.com";

// Test comment against akismet's service
bool isSpam = api.COmmentCheck(comment);

Akismet 岩石。

-查尔斯

于 2009-12-07T21:27:17.267 回答
1

实现此目的的一种简单方法是为您的电子邮件设置一个 Google 域帐户,并让 Google 处理您的垃圾邮件。然后,您可以使用常规 pop3 或 imap api 访问该帐户,或者简单地将所有电子邮件转发到您的真实帐户。

于 2009-12-03T01:47:17.113 回答