https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7224
--- Comment #4 from Alessandro Vesely <[email protected]> --- That doesn't seem to be the case. I got a fresh trunk version, and added the following, using Data::Dumper: open(my $hdbgfile, ">", "spf-dbg-hdrs-before") or die $!; print $hdbgfile Dumper(\@internal_hdrs); close($hdbgfile); Then I scanned the notification mail I just received. Then, I patched SPF.pm, changed the file name to "spf-dbg-hdrs-after" and scanned the message again. The output was the same, except for Jun 16 13:07:01.063 [29898] dbg: spf: checking to see if the message has a Received-SPF header that we can use Jun 16 13:07:01.064 [29898] dbg: spf: found a Received-SPF header added by an internal host: Received-SPF: none (Address does not pass the Sender Policy Framework) Jun 16 13:07:01.064 [29898] dbg: spf: re-using mfrom result from Received-SPF header: none Jun 16 13:07:01.064 [29898] dbg: spf: found a Received-SPF header added by an internal host: Received-SPF: unknown (Address does not pass the Sender Policy Framework) Jun 16 13:07:01.064 [29898] dbg: spf: could not parse result from existing Received-SPF header turned into Jun 16 13:20:36.638 [29989] dbg: spf: checking to see if the message has a Received-SPF header that we can use Jun 16 13:20:36.639 [29989] dbg: spf: found a Received-SPF header added by an internal host: Received-SPF: none (Address does not pass the Sender Policy Framework) SPF=MAILFROM; [email protected]; remoteip=209.188.14.142; remotehost=pnap-us-west-generic-nat.apache.org; helo=spamd3-us-west.apache.org; receiver=wmail.tana.it; Jun 16 13:20:36.639 [29989] dbg: spf: re-using mfrom result from Received-SPF header: none Jun 16 13:20:36.639 [29989] dbg: spf: found a Received-SPF header added by an internal host: Received-SPF: unknown (Address does not pass the Sender Policy Framework) SPF=HELO; sender=spamd3-us-west.apache.org; remoteip=209.188.14.142; remotehost=pnap-us-west-generic-nat.apache.org; helo=spamd3-us-west.apache.org; receiver=wmail.tana.it; Jun 16 13:20:36.639 [29989] dbg: spf: could not parse result from existing Received-SPF header Jun 16 13:20:36.666 [29989] dbg: spf: using Mail::SPF for SPF checks The Received-SPF cannot be parsed in both cases, in the 2nd attempt because of its format. I attach the debug files showing what the plugin was trying to parse. -- You are receiving this mail because: You are the assignee for the bug.
