Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
09f7e0ec
Commit
09f7e0ec
authored
Nov 21, 2019
by
IKEDA Soji
Browse files
More fixes.
parent
a226842c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/Message.pm
View file @
09f7e0ec
...
...
@@ -3329,10 +3329,13 @@ sub _check_dmarc_rr {
my
$packet
=
$dns
->
query
("
_dmarc.
$domain
",
'
TXT
');
next
unless
$packet
;
(
$rrstr
)
=
map
{
$_
->
txtdata
}
grep
{
$_
->
type
eq
'
TXT
'
and
$_
->
txtdata
=~
/\Av=DMARC/i
}
$packet
->
answer
;
(
$rrstr
)
=
grep
{
$_
and
$_
=~
/\Av=DMARC/i
}
map
{
# Note: txtdata() of Net::DNS::RR::TXT >=0.69 returns array of
# text fragments in array context. Take care to get values in
# scalar context.
my
$rrstr
=
$_
->
txtdata
if
$_
->
type
eq
'
TXT
';
$rrstr
;
}
$packet
->
answer
;
last
if
$rrstr
;
}
continue
{
$domain
=~
s/\A[^.]*[.]//
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment