Am 2021-04-08 17:46, schrieb Bill Cole:
On 8 Apr 2021, at 6:25, Matus UHLAR - fantomas wrote:

and there is no undef_whitelist_auth, and the unwhitelist_auth does NOT work.

It does work in 3.4.5, although if you're not there yet I'd advise
waiting for 3.4.6.

See https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7809

Ok, there is a code change from 3.4.4 to 3.4.5

from 3.4.5

  push (@cmds, {
    command => 'unwhitelist_auth',
    setting => 'whitelist_auth',
    type => $CONF_TYPE_ADDRLIST,
    code => \&Mail::SpamAssassin::Conf::Parser::remove_addrlist_value
  });

from 3.4.5

  push (@cmds, {
    setting => 'unwhitelist_auth',
    type => $CONF_TYPE_ADDRLIST,
    code => sub {
      my ($self, $key, $value, $line) = @_;
      unless (defined $value && $value !~ /^$/) {
        return $MISSING_REQUIRED_VALUE;
      }
      unless ($value =~ /^(?:\S+(?:\s+\S+)*)$/) {
        return $INVALID_VALUE;
      }
      $self->{parser}->remove_from_addrlist('whitelist_auth',
                                        split (/\s+/, $value));
      $self->{parser}->remove_from_addrlist('def_whitelist_auth',
                                        split (/\s+/, $value));
    }
  });

Therefore it should work in 3.4.5

Michael

Reply via email to