7
0
forked from pool/spamassassin
Files
spamassassin/patch-PgSQL
Arjen de Korte abc668ea00 Accepting request 1045234 from home:adkorte
- Update known warnings
  % spamassassin-rpmlintrc

- Update to spamassissin 4.0.0:
  * Notable internal changes:
    - Meta rules no longer use priority values, they are evaluated
      dynamically when the rules they depend on are finished
    - DNS and other asynchronous lookups like DCC or Razor2 plugins
      are now launched when priority -100 is reached. This allows
      short circuiting at lower priority without sending unneeded
      DNS queries
    - New internal Mail::SpamAssassin::GeoDB module supporting
      RelayCountry and URILocalBL plugins provides a unified
      interface to Geographic IP modules. These include:
        MaxMind::DB::Reader (GeoIP2)
        Geo::IP
        IP::Country::DB_File
        IP::Country::Fast.
  * New plugins:
    - Mail::SpamAssassin::Plugin::ExtractText
    - Mail::SpamAssassin::Plugin::DMARC
    - Mail::SpamAssassin::Plugin::DecodeShortURLs
  * HashCash module has been removed completely
  * Full detailed changelog:
    https://svn.apache.org/repos/asf/spamassassin/trunk/Changes

OBS-URL: https://build.opensuse.org/request/show/1045234
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=156
2022-12-24 17:15:58 +00:00

23 lines
1.2 KiB
Plaintext

Index: lib/Mail/SpamAssassin/BayesStore/PgSQL.pm
===================================================================
--- lib/Mail/SpamAssassin/BayesStore/PgSQL.pm.orig
+++ lib/Mail/SpamAssassin/BayesStore/PgSQL.pm
@@ -987,7 +987,7 @@ sub _put_token {
}
my $escaped_token = _quote_bytea($token);
- my $sth = $self->{_dbh}->prepare("select put_tokens($self->{_userid}, $self->{_esc_prefix}'{$escaped_token}', $spam_count,$ham_count,$atime)");
+ my $sth = $self->{_dbh}->prepare("select put_tokens($self->{_userid}, $self->{_esc_prefix}'{$escaped_token}'::bytea[], $spam_count,$ham_count,$atime)");
unless (defined($sth)) {
dbg("bayes: _put_token: SQL error: ".$self->{_dbh}->errstr());
@@ -1050,7 +1050,7 @@ sub _put_tokens {
my $tokenarray = join(",", map { '"' . _quote_bytea($_) . '"' } sort keys %{$tokens});
- my $sth = $self->{_dbh}->prepare("select put_tokens($self->{_userid}, $self->{_esc_prefix}'{$tokenarray}', $spam_count, $ham_count, $atime)");
+ my $sth = $self->{_dbh}->prepare("select put_tokens($self->{_userid}, $self->{_esc_prefix}'{$tokenarray}'::bytea[], $spam_count, $ham_count, $atime)");
unless (defined($sth)) {
dbg("bayes: _put_tokens: SQL error: ".$self->{_dbh}->errstr());