Permalink
Browse files

Handle SPF exists: tag

  • Loading branch information...
1 parent 38115c9 commit b35abfa3bfb239af64ec4b27eccc12866dc3e9bd @jcameron jcameron committed Feb 18, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 bind8/records-lib.pl
View
@@ -662,7 +662,7 @@ sub parse_spf
if ($w eq "a" || $w eq "mx" || $w eq "ptr") {
$spf->{$w} = 1;
}
- elsif ($w =~ /^(a|mx|ip4|ip6|ptr|include):(\S+)$/) {
+ elsif ($w =~ /^(a|mx|ip4|ip6|ptr|include|exists):(\S+)$/) {
push(@{$spf->{"$1:"}}, $2);
}
elsif ($w eq "-all") {
@@ -704,7 +704,7 @@ sub join_spf
foreach my $s ("a", "mx", "ptr") {
push(@rv, $s) if ($spf->{$s});
}
-foreach my $s ("a", "mx", "ip4", "ip6", "ptr", "include") {
+foreach my $s ("a", "mx", "ip4", "ip6", "ptr", "include", "exists") {
foreach my $v (@{$spf->{"$s:"}}) {
push(@rv, "$s:$v");
}

0 comments on commit b35abfa

Please sign in to comment.