SPF Qualifier: None -> Neutral.

This commit is contained in:
Philippe Pittoli 2024-03-06 00:24:38 +01:00
parent 21394f7d81
commit d105fa2e38

View File

@ -273,7 +273,7 @@ class DNSManager::Storage::Zone
# `REDIRECT` modifier provided. # `REDIRECT` modifier provided.
enum Qualifier enum Qualifier
Pass # + Pass # +
None # ? Neutral # ?
SoftFail # ~ SoftFail # ~
HardFail # - HardFail # -
end end
@ -377,7 +377,7 @@ class DNSManager::Storage::Zone
# The `all` mechanism is the default behavior for email coming from non conforming # The `all` mechanism is the default behavior for email coming from non conforming
# IP addresses, meaning senders not respecting the SPF record. # IP addresses, meaning senders not respecting the SPF record.
property q : Qualifier = Qualifier::None property q : Qualifier = Qualifier::Neutral
def initialize(@name, @ttl, @target, @v, @mechanisms, @q) def initialize(@name, @ttl, @target, @v, @mechanisms, @q)
@rrtype = "SPF" @rrtype = "SPF"
@ -710,7 +710,7 @@ def qualifier_to_char(qualifier : DNSManager::Storage::Zone::SPF::Qualifier) : C
case qualifier case qualifier
when .pass? when .pass?
'+' '+'
when .none? when .neutral?
'?' '?'
when .soft_fail? when .soft_fail?
'~' '~'