发送简单的文本(不是电子邮件)到垃圾邮件 [英] Send simple text (not email) to SpamAssassin

查看:190
本文介绍了发送简单的文本(不是电子邮件)到垃圾邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道我是否可以将简单的文本发送给SpamAssassin。
我想将注释放在一个文本文件中,并调用'spamc< file.txt'
(我不知道是否可以直接发送文本到垃圾邮件)。问题是,如果我不指定标题或标题,SpamAssassin会将所有内容报告为垃圾邮件...我可以绕过所有头文件验证 - 还有哪些模式可以扫描简单的纯文本? (我没有经验,所以我更喜欢问这个,谢谢提前)

I was wondering if I can send simple text to SpamAssassin. I want to put the comment in a text file and call 'spamc < file.txt' (i don't know if it is possible to send text direct to spamc). The problem is that SpamAssassin will report everything as spam if i don't specify headers or title ... Can i bypass all headers verification - or there is any mode where i can scan simple plain text ? (i don't have experience so I prefer to ask this. Thanks in advance)

推荐答案

我相信你可以禁用任何SA引用标题的规则,但是由于消息的格式错误,它可能仍然会中断。即使没有,SA的得分依赖于标题,因为它没有检查它们是有效的。如果你想对任意的文本进行垃圾邮件检查,也许统计工具就像 Bogofilter 一样更合适。

I believe you can disable any SA rules that refer to the headers, but it would probably still break due the "message" being malformed. And even if it did not, SA scoring relies way too much on the headers for it to be efficient without checking them. If you want to do spam checking on arbitrary text, perhaps a statistical tool like Bogofilter would be more suitable.

编辑:

从Bogofilter联机帮助页:

From the Bogofilter manpage:


Bogofilter是一个贝叶斯垃圾邮件过滤器。在正常的操作模式中,它采用标准输入的电子邮件或其他文本,对好
和坏字的列表进行统计检查,并返回一条状态代码,指示消息是否是垃圾邮件。

Bogofilter is a Bayesian spam filter. In its normal mode of operation, it takes an email message or other text on standard input, does a statistical check against lists of "good" and "bad" words, and returns a status code indicating whether or not the message is spam.

如果没有格式化为邮件,它将很乐意地排序任意文本,而不会抱怨。

It will happily sort arbitrary text without complaining if it is not formatted as mail.

这篇关于发送简单的文本(不是电子邮件)到垃圾邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆