1Mail::SpamAssassin::MesUssaegre:C:oMnettraidbauttae(d3M)Paeirll::DSopcaummAesnstaastsiionn::Message::Metadata(3)
2
3
4
6 Mail::SpamAssassin::Message::Metadata - extract metadata from a message
7
9 This class is tasked with extracting "metadata" from messages for use
10 as Bayes tokens, fodder for eval tests, or other rules. Metadata is
11 supplemental data inferred from the message, like the examples below.
12
13 It is held in two forms:
14
15 1. as name-value pairs of strings, presented in mail header format.
16 For
17 example, "X-Languages" => "en". This is the general form for simple
18 metadata that's useful as Bayes tokens, can be added to marked-up
19 messages using "add_header", etc., such as the trusted-relay
20 inference
21 and language detection.
22
23 2. as more complex data structures on the $msg->{metadata} object.
24 This
25 is the form used for metadata like the HTML parse data, which is
26 stored
27 there for access by eval rule code. Because it's not simple
28 strings,
29 it's not added as a Bayes token by default (Bayes needs simple
30 strings).
31
33 new()
34
35
36
37perl v5.34.0 2022-M0a1i-l2:2:SpamAssassin::Message::Metadata(3)