Skip to content

Commit

Permalink
Merge pull request #17 from dotBATmanNO/dotBATmanNO/issue12
Browse files Browse the repository at this point in the history
DotBATman_no/issue12
  • Loading branch information
dotBATmanNO authored Oct 8, 2020
2 parents 600d1c6 + f6a031b commit 80e0742
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Get-Domain-MailInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,11 @@ Function fnSPFRecord {
{
Return $False
}
If ($SPFRecord.Strings)
{
$SPFRec = $SPFRecord.Strings | Where-Object -FilterScript { $_ -like "v=spf1*" }

If ($SPFRec) { Return $SPFRec }
$spfrec = ($spfrecord | Where-Object {$_.strings -like 'v=spf1*'}).text

If ($SPFRec) { Return $SPFRec -join '' }

}

# No v=SPF1 txt record was found
# No v=SPF1 txt record was found, signal with $false
Return $False

} # End Function fnSPFRecord
Expand Down

0 comments on commit 80e0742

Please sign in to comment.