spf-discuss
[Top] [All Lists]

Re: Software is Buggy and Immature!

2004-06-29 07:49:30
Meng Weng Wong wrote:
Can you give me an example domain?

dechtech.com

Query.pm already ignores
non-SPF TXT records.  What version of Mail::SPF::Query are
you using?

I tried it with 1.997 and fallbacks didn't work with this domain, but did when I tried it with a domain with no TXT records.

      # squish multiline responses into one first.
      foreach (@txt) {
        s/^"(.*)"$/$1/;
        s/^\s+//;
        s/\s+$//;

        if (/^v=spf1(\s.*|)$/i) {
          $txt .= $1;
        }
      }

This is filtering @txt into a scalar, $txt. The decision about whether to check for fallback records is based on @txt though:

> if ($query->{error} || $query->{last_dns_error} eq 'NXDOMAIN' || ! @txt) {
>           # try the fallbacks.

Cheers, Paul.


<Prev in Thread] Current Thread [Next in Thread>