1Mail::SPF::Mech::IP4(3)User Contributed Perl DocumentatioMnail::SPF::Mech::IP4(3)
2
3
4
6 Mail::SPF::Mech::IP4 - SPF record "ip4" mechanism class
7
9 An object of class Mail::SPF::Mech::IP4 represents an SPF record
10 mechanism of type "ip4".
11
12 Constructors
13 The following constructors are provided:
14
15 new(%options): returns Mail::SPF::Mech::IP4
16 Creates a new SPF record "ip4" mechanism object.
17
18 %options is a list of key/value pairs representing any of the
19 following options:
20
21 qualifier
22 ip_network
23 See "new" in Mail::SPF::Mech.
24
25 new_from_string($text, %options): returns Mail::SPF::Mech::IP4; throws
26 Mail::SPF::ENothingToParse, Mail::SPF::EInvalidMech
27 Creates a new SPF record "ip4" mechanism object by parsing the
28 string and any options given.
29
30 Class methods
31 The following class methods are provided:
32
33 default_qualifier
34 default_ipv4_prefix_length
35 qualifier_pattern
36 See "Class methods" in Mail::SPF::Mech.
37
38 name: returns string
39 Returns 'ip4'.
40
41 name_pattern: returns Regexp
42 Returns a regular expression that matches a mechanism name of
43 'ip4'.
44
45 See Mail::SPF::Mech for other supported class methods.
46
47 Instance methods
48 The following instance methods are provided:
49
50 text
51 qualifier
52 params
53 stringify
54 See "Instance methods" in Mail::SPF::Mech.
55
56 ip_network: returns NetAddr::IP
57 Returns the IP address network parameter of the mechanism.
58
59 match($server, $request): returns boolean
60 Returns true if the mechanism's "ip_network" equals or contains the
61 given request's IP address, or false otherwise. See RFC 4408, 5.6,
62 for details.
63
65 Mail::SPF, Mail::SPF::Record, Mail::SPF::Term, Mail::SPF::Mech
66
67 <http://tools.ietf.org/html/rfc4408>
68
69 For availability, support, and license information, see the README file
70 included with Mail::SPF.
71
73 Julian Mehnle <julian@mehnle.net>, Shevek <cpan@anarres.org>
74
75
76
77perl v5.36.0 2022-07-22 Mail::SPF::Mech::IP4(3)