Jim Barber wrote:

From: Mark Martinec [mailto:mark.martinec...@ijs.si]
Are you using some third-party SpamAssasin plugin that relies on the
deprecated subroutine Mail::SpamAssassin::Util::uri_to_domain ?

I'm getting the same error:

May 15 12:34:41 smtp-syd mimedefang-multiplexor[30108]:
t4F2YYjZ003229: Slave 6 stderr: plugin: eval failed: Undefined
subroutine &Mail::SpamAssassin::Util::RegistrarBoundaries::trim_domain
called at /usr/share/perl5/Mail/SpamAssassin/Util.pm line 1236.

I'm using The SpamAssassin Debian package (which is version 3.4.1-1).

I do have a third party plugin that is calling uri_to_domain.
It is located at the following URL:

        https://github.com/smfreegard/DecodeShortURLs

And is linked to from the SpamAssassin Custom Plugins wiki page:

        https://wiki.apache.org/spamassassin/CustomPlugins

Here is the offending line:

jimb@smtp-syd:~$ grep uri_to_domain /etc/spamassassin/DecodeShortURLs.pm
            my ($dom, $host) = Mail::SpamAssassin::Util::uri_to_domain($_);

I'm mentioning this because the bug that was raised for this has the
following comment:

        "KAM: Please let us know if you are using a 3rd party plugin because
      we'd like to make sure the authors noticed the change in 3.4.1."
        https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7195


Thanks, useful. If you have a chance please try the small patch there
(just adds the:  use Mail::SpamAssassin::Util::RegistrarBoundaries;
line in Util.pm) and see if it helps.

  Mark

Reply via email to