1Mail::MIMEDefang::AnMtaiislp:a:mM(I3M)EDefang::Antispam DocuMmaeinlt:a:tMiIoMnEDefang::Antispam(3)
2
3
4
6 Mail::MIMEDefang::Antispam - antispam related methods for email filters
7
9 Mail::MIMEDefang::Antispam are a set of methods that can be called from
10 mimedefang-filter to check email messages with antispam softwares.
11
13 spam_assassin_is_spam
14 Method that scans a mmessage using SpamAssassin and returns True if
15 the email message has been detected as spam.
16
17 spam_assassin_check
18 Method that scans a message using SpamAssassin and returns an array
19 of four elements,
20
21 • Weight of message ('hits')
22
23 • Number of hits required before SA considers a message spam
24
25 • Comma separated list of symbolic test names that were triggered
26
27 • A 'report' string, detailing tests that failed and their
28 weights
29
30 spam_assassin_status
31 Method that scans a mmessage using SpamAssassin and returns a
32 "Mail::SpamAssassin:PerMsgStatus" object. The caller is
33 responsible for calling the "finish" method.
34
35 spam_assassin_init
36 Initialize Apache SpamAssassin and returns a "Mail::SpamAssassin"
37 object.
38
39 spam_assassin_mail
40 Method that calls SpamAssassin and returns a
41 "Mail::SpamAssassin::Message" object.
42
43 rspamd_check
44 Method that scans the message using Rspamd and returns an array of
45 six elemets:
46
47 • Weight of message ('hits')
48
49 • Number of hits required before Rspamd considers a message spam
50
51 • Comma separated list of symbolic test names that were triggered
52
53 • A 'report' string, detailing tests that failed and their
54 weights
55 or a Json report if JSON and LWP modules are present
56
57 • An action that should be applied to the email
58
59 • A flag explaining if the email is a spam message or not
60 (true/false).
61
62 An optional rspamd url can be passed to the method, its default
63 value is http://127.0.0.1:11333.
64
65
66
673.4.1 2023-05-15 Mail::MIMEDefang::Antispam(3)