Re: update-rules script: Error with latest LWP:::UserAgent on FreeBSD

2022-04-27 Thread Henrik K


It's harmless and fixed in next libwww:
https://github.com/libwww-perl/libwww-perl/issues/410

On Wed, Apr 27, 2022 at 02:04:38PM -0500, Larry Rosenman wrote:
> I'm getting the following error when my update_rules script runs:
> 
> "my" variable $uri masks earlier declaration in same scope at
> /usr/local/lib/perl5/site_perl/LWP/UserAgent.pm line 783.
> 
> 
> I think(?) this comes from this package:
> ??? pkg info p5-libwww
> p5-libwww-6.63
> Name   : p5-libwww
> Version: 6.63
> Installed on   : Tue Apr 26 15:03:58 2022 CDT
> Origin : www/p5-libwww
> Architecture   : FreeBSD:13:*
> Prefix : /usr/local
> Categories : devel perl5 www
> Licenses   : ART10, GPLv1+
> Maintainer : sunp...@freebsd.org
> WWW: https://metacpan.org/release/libwww-perl
> Comment: Perl5 library for WWW access
> Annotations:
>   build_timestamp: 2022-04-26T16:51:34+
>   built_by   : poudriere-git-3.3.99.20211130
>   port_checkout_unclean: no
>   port_git_hash  : 192ed4c74fe5
>   ports_top_checkout_unclean: no
>   ports_top_git_hash: 0f1527691c04
>   repo_type  : binary
>   repository : poudriere
> Flat size  : 419KiB
> Description:
> Libwww-perl is a collection of Perl modules which provides a simple and
> consistent programming interface (API) to the World-Wide Web.  The main
> focus of the library is to provide classes and functions that allow you
> to write WWW clients, thus libwww-perl said to be a WWW client library.
> The library also contain modules that are of more general use.
> 
> The main architecture of the library is object oriented.  The user
> agent, requests sent and responses received from the WWW server are all
> represented by objects.  This makes a simple and powerful interface to
> these services.  The interface should be easy to extend and customize
> for your needs.
> 
> WWW: https://metacpan.org/release/libwww-perl
> 
> ler in thebighonker in ~ via ??? v1.8.0 via  v5.32.1 via  v3.0.4
> ???
> 
> 
> /usr/local/etc/mail/spamassassin/update-rules.sh
> ??? cat /usr/local/etc/mail/spamassassin/update-rules.sh
> #!/bin/sh
> PATH=$PATH:/usr/local/bin
> export PATH
> /usr/local/bin/sa-update
> EXIT=$?
> case $EXIT in
>   0)
>  /usr/local/bin/sa-compile
>kill -1 `cat /var/run/spamd/spamd.pid`;;
> *) ;;
> esac
> 
> ler in thebighonker in ~ via ??? v1.8.0 via  v5.32.1 via  v3.0.4
> ???
> 
> ??? pkg info spamassassin
> zsh: correct 'spamassassin' to '.spamassassin' [nyae]? n
> spamassassin-3.4.5
> Name   : spamassassin
> Version: 3.4.5
> Installed on   : Sun Apr  3 17:05:29 2022 CDT
> Origin : mail/spamassassin
> Architecture   : FreeBSD:13:amd64
> Prefix : /usr/local
> Categories : perl5 mail
> Licenses   : APACHE20
> Maintainer : zeis...@freebsd.org
> WWW: http://spamassassin.apache.org/
> Comment: Highly efficient mail filter for identifying spam
> Options:
>   AS_ROOT: on
>   DCC: off
>   DKIM   : on
>   DOCS   : on
>   GNUPG  : off
>   GNUPG2 : on
>   GNUPG_NONE : off
>   MYSQL  : off
>   PGSQL  : on
>   PYZOR  : off
>   RAZOR  : on
>   RELAY_COUNTRY  : on
>   RLIMIT : off
>   SPF_QUERY  : on
>   SSL: on
> Shared Libs required:
>   libperl.so.5.32
> Annotations:
>   FreeBSD_version: 1301501
>   build_timestamp: 2022-04-02T22:38:31+
>   built_by   : poudriere-git-3.3.99.20211130
>   cpe: cpe:2.3:a:apache:spamassassin:3.4.5:freebsd13:x64
>   port_checkout_unclean: no
>   port_git_hash  : 819f25b36d45
>   ports_top_checkout_unclean: no
>   ports_top_git_hash: d0d63dec4011
>   repo_type  : binary
>   repository : poudriere
> Flat size  : 3.28MiB
> Description:
> SpamAssassin is a mail filter which attempts to identify spam using text
> analysis and several internet-based realtime blacklists.
> 
> Using its rule base, it uses a wide range of heuristic tests on mail
> headers and body text to identify "spam", also known as unsolicited
> commercial email.
> 
> Once identified, the mail can then be optionally tagged as
> spam for later
> filtering using the user's own mail user-agent application.
> 
> Additional drop-in rule sets are available at
> http://wiki.apache.org/spamassassin/CustomRulesets
> 
> WWW: http://spamassassin.apache.org/
> 
> ler in thebighonker in ~ via ??? v1.8.0 via  v5.32.1 via  v3.0.4
> 
> Ideas?
> 
> -- 
> Larry Rosenman http://www.lerctr.org/~ler
> Phone: +1 214-642-9640 E-Mail: l...@lerctr.org
> US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106


update-rules script: Error with latest LWP:::UserAgent on FreeBSD

2022-04-27 Thread Larry Rosenman

I'm getting the following error when my update_rules script runs:

"my" variable $uri masks earlier declaration in same scope at 
/usr/local/lib/perl5/site_perl/LWP/UserAgent.pm line 783.



I think(?) this comes from this package:
❯ pkg info p5-libwww
p5-libwww-6.63
Name   : p5-libwww
Version: 6.63
Installed on   : Tue Apr 26 15:03:58 2022 CDT
Origin : www/p5-libwww
Architecture   : FreeBSD:13:*
Prefix : /usr/local
Categories : devel perl5 www
Licenses   : ART10, GPLv1+
Maintainer : sunp...@freebsd.org
WWW: https://metacpan.org/release/libwww-perl
Comment: Perl5 library for WWW access
Annotations:
build_timestamp: 2022-04-26T16:51:34+
built_by   : poudriere-git-3.3.99.20211130
port_checkout_unclean: no
port_git_hash  : 192ed4c74fe5
ports_top_checkout_unclean: no
ports_top_git_hash: 0f1527691c04
repo_type  : binary
repository : poudriere
Flat size  : 419KiB
Description:
Libwww-perl is a collection of Perl modules which provides a simple and
consistent programming interface (API) to the World-Wide Web.  The main
focus of the library is to provide classes and functions that allow you
to write WWW clients, thus libwww-perl said to be a WWW client library.
The library also contain modules that are of more general use.

The main architecture of the library is object oriented.  The user
agent, requests sent and responses received from the WWW server are all
represented by objects.  This makes a simple and powerful interface to
these services.  The interface should be easy to extend and customize
for your needs.

WWW: https://metacpan.org/release/libwww-perl

ler in thebighonker in ~ via ☕ v1.8.0 via  v5.32.1 via  v3.0.4
❯


/usr/local/etc/mail/spamassassin/update-rules.sh
❯ cat /usr/local/etc/mail/spamassassin/update-rules.sh
#!/bin/sh
PATH=$PATH:/usr/local/bin
export PATH
/usr/local/bin/sa-update
EXIT=$?
case $EXIT in
0)
   /usr/local/bin/sa-compile
   kill -1 `cat /var/run/spamd/spamd.pid`;;
*) ;;
esac

ler in thebighonker in ~ via ☕ v1.8.0 via  v5.32.1 via  v3.0.4
❯

❯ pkg info spamassassin
zsh: correct 'spamassassin' to '.spamassassin' [nyae]? n
spamassassin-3.4.5
Name   : spamassassin
Version: 3.4.5
Installed on   : Sun Apr  3 17:05:29 2022 CDT
Origin : mail/spamassassin
Architecture   : FreeBSD:13:amd64
Prefix : /usr/local
Categories : perl5 mail
Licenses   : APACHE20
Maintainer : zeis...@freebsd.org
WWW: http://spamassassin.apache.org/
Comment: Highly efficient mail filter for identifying spam
Options:
AS_ROOT: on
DCC: off
DKIM   : on
DOCS   : on
GNUPG  : off
GNUPG2 : on
GNUPG_NONE : off
MYSQL  : off
PGSQL  : on
PYZOR  : off
RAZOR  : on
RELAY_COUNTRY  : on
RLIMIT : off
SPF_QUERY  : on
SSL: on
Shared Libs required:
libperl.so.5.32
Annotations:
FreeBSD_version: 1301501
build_timestamp: 2022-04-02T22:38:31+
built_by   : poudriere-git-3.3.99.20211130
cpe: cpe:2.3:a:apache:spamassassin:3.4.5:freebsd13:x64
port_checkout_unclean: no
port_git_hash  : 819f25b36d45
ports_top_checkout_unclean: no
ports_top_git_hash: d0d63dec4011
repo_type  : binary
repository : poudriere
Flat size  : 3.28MiB
Description:
SpamAssassin is a mail filter which attempts to identify spam using text
analysis and several internet-based realtime blacklists.

Using its rule base, it uses a wide range of heuristic tests on mail
headers and body text to identify "spam", also known as unsolicited
commercial email.

Once identified, the mail can then be optionally tagged as spam for 
later

filtering using the user's own mail user-agent application.

Additional drop-in rule sets are available at
http://wiki.apache.org/spamassassin/CustomRulesets

WWW: http://spamassassin.apache.org/

ler in thebighonker in ~ via ☕ v1.8.0 via  v5.32.1 via  v3.0.4

Ideas?

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 E-Mail: l...@lerctr.org
US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106


Script error

2006-10-17 Thread Reginaldo Bray Mendoza



Hello 
everybody.

Today 
i upgraded spamassassin to last version available (3.1.7). I tried to 
execute:

/etc/init.d/spamassassin status|restart|stop 

and i 
get the following error message:

spamassassin: spamassassin script is v3.001003, but using modules 
v3.001007

However, i run spamassassin --version and get the following 
message:

SpamAssassin version 3.1.7 running on Perl version 
5.8.0
I 
downloaded the .tar.gz file from spamassassin website and executed perl 
MakeFile.PL -- make -- make install.

Can 
somebody tell me how can i fix this??

Thanks 
and regards,



Reginaldo 
Bray MendozaSystems 
ProgrammerEurolatina SC Ltda - LBH Group Colombia
As Agents 
Only
Phone: 
+57 5 665 3580
Fax:  
+57 5 655 1492
Mobile: 
+57 315 897 5310
Email: 
[EMAIL PROTECTED] 
(personal)
[EMAIL PROTECTED] 
(preferred)

Group 
website: www.lbh-group.com
We are working HARD towards 
becoming the most respected ship agency in Colombia, by applying the highest 
quality, service and security standards of the international maritime industry. 
Thank you for making contact with us - Eurolatina SC Ltda Team - LBH 
Colombia.


RE: Script error

2006-10-17 Thread Bowie Bailey
Reginaldo Bray Mendoza wrote:
 Hello everybody.
 
 Today i upgraded spamassassin to last version available (3.1.7). I
 tried to execute: 
 
 /etc/init.d/spamassassin status|restart|stop
 
 and i get the following error message:
 
 spamassassin: spamassassin script is v3.001003, but using modules
 v3.001007 
 
 However, i run spamassassin --version and get the following message:
 
   SpamAssassin version 3.1.7
   running on Perl version 5.8.0
 
 I downloaded the .tar.gz file from spamassassin website and executed
 perl MakeFile.PL -- make -- make install. 
 
 Can somebody tell me how can i fix this??

Take a look at /etc/init.d/spamassassin and see where it is finding
the program.

Then do 'which spamassassin' to see which one you are running.

You have two SpamAssassin installs.  You will need to make sure you
are running the correct one.  The best solution is to remove both of
them and reinstall to make sure you only have one installation.

This is usually caused by upgrading via a different method than the
original install (RPM vs CPAN vs source build).  Pick a method and
stick with it.

-- 
Bowie


Rules Du Jour Script Error

2005-11-14 Thread Tracey Gates
Title: Message



I have followed the
installation steps from the Rules Du Jour site (http://www.exit0.us/index.php?pagename=RulesDuJour)
and am trying to run the script manually but I get the following
error:

[EMAIL PROTECTED]
sbin]# ./rules_du_jour: bad interpreter: No such file or
directory

It doesn't see to
like the #!/bin/bash line. I haven't changed any of the script and have it
executable. I have my configuration
fileas/etc/rulesdujour/config as stated in the installation
steps. I have also made sure that bash is located in the /bin directory
and it is there. I am trying to run the script at root so there shouldn't
be any permissions problems.

I'm not sure why I'm
getting this error or what to do to correct it. Can someone please help
me?

Thanks!



Tracey GatesLead
Developer[EMAIL PROTECTED] 
1350 South Boulder, Third Floor / Tulsa, OK 74119-3203Phone
918-663-0991 / Fax 918-663-0840
This communication is intended only for the recipient(s) named above; may be
confidential and/or legally privileged; and, must be treated as such in
accordance with state and federal laws. If you are not the intended recipient,
you are hereby notified that any use of this communication, or any of its
contents, is prohibited. If you have received this communication in error,
please reply to the sender and then delete the message from your computer system
immediately.




Re: Rules Du Jour Script Error

2005-11-14 Thread Chris Thielen

Hi Tracey!


Tracey Gates wrote:

I have followed the installation steps from the Rules Du Jour site 
(_http://www.exit0.us/index.php?pagename=RulesDuJour_) and am trying 
to run the script manually but I get the following error:
 
[EMAIL PROTECTED] sbin]# ./rules_du_jour

: bad interpreter: No such file or directory



That is usually due to bad line endings.  Are you using cygwin?  Open 
the file in vi and do:


:set fileformat=unix
:wq

-or-

:set fileformat=dos
:wq

depending on cygwin or not (cygwin == dos, other == unix).

It doesn't see to like the #!/bin/bash line.  I haven't changed any of 
the script and have it executable.  I have my configuration 
file as /etc/rulesdujour/config as stated in the installation steps.  
I have also made sure that bash is located in the /bin directory and 
it is there.  I am trying to run the script at root so there shouldn't 
be any permissions problems.
 
I'm not sure why I'm getting this error or what to do to correct it.  
Can someone please help me?



HTH!

Chris


signature.asc
Description: OpenPGP digital signature


RE: script error?

2004-11-19 Thread Noel K Hall II
First, shutdown the running spamd process (if it is), and any process that
calls the use of spamassassin.

Then from the CPAN shell  use 'force install Mail::SpamAssassin'

Then restart everything and see what happens.

-Noel

-Original Message-
From: Stefan Suurmeijer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 18, 2004 6:52 PM
To: users@spamassassin.apache.org
Subject: script error?

Hi list,

this is probably some easy configuration issue, but it's now almost 1am and
I just spent the last 4 hours upgrading my system so by now I wouldn't see a
solution if it hit me in the face.

I have everything working, except for spamassassin. I had it working
earlier, but I decided to get the newest version of SA from CPAN and now
when I try to start spamd I get the following error:

ERROR!  spamassassin script is v3.00, but using modules v3.01!

which is great in not telling me anything useful about what is wrong. 
Can anybody point me in the right direction? Any help would be GREATLY
appreciated

TIA
Stefan




Re: script error?

2004-11-19 Thread Stefan Suurmeijer
tried it but didn't work. There's probably some statement in a startup 
script that is no longer available in v3.01, but I have no idea 
what. Anyone?

Noel K Hall II wrote:
First, shutdown the running spamd process (if it is), and any process that
calls the use of spamassassin.
Then from the CPAN shell  use 'force install Mail::SpamAssassin'
Then restart everything and see what happens.
-Noel
-Original Message-
From: Stefan Suurmeijer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 18, 2004 6:52 PM
To: users@spamassassin.apache.org
Subject: script error?

Hi list,
this is probably some easy configuration issue, but it's now almost 1am and
I just spent the last 4 hours upgrading my system so by now I wouldn't see a
solution if it hit me in the face.
I have everything working, except for spamassassin. I had it working
earlier, but I decided to get the newest version of SA from CPAN and now
when I try to start spamd I get the following error:
ERROR!  spamassassin script is v3.00, but using modules v3.01!
which is great in not telling me anything useful about what is wrong. 
Can anybody point me in the right direction? Any help would be GREATLY
appreciated

TIA
Stefan
 



RE: script error?

2004-11-19 Thread Martin
|-Original Message-
|From: Stefan Suurmeijer [mailto:[EMAIL PROTECTED] 
|Sent: 18 November 2004 23:52
|To: users@spamassassin.apache.org
|Subject: script error?
|
|Hi list,
|
|this is probably some easy configuration issue, but it's now 
|almost 1am and I just spent the last 4 hours upgrading my 
|system so by now I wouldn't see a solution if it hit me in the face.
|
|I have everything working, except for spamassassin. I had it 
|working earlier, but I decided to get the newest version of SA 
|from CPAN and now when I try to start spamd I get the following error:
|
|ERROR!  spamassassin script is v3.00, but using modules v3.01!
|
|which is great in not telling me anything useful about what is wrong. 
|Can anybody point me in the right direction? Any help would be 
|GREATLY appreciated
|

I had exactly the same when I upgraded, turned out I had two versions of
spamd on, one in /usr/bin/spamd and the other /usr/sbin/spamd, one was the
old one and the other was the new one, cant remember which way round now,
shouldn't be hard to figure though. The startup script was finding the old
one, just delete it and/or copy the new one over.

Martin



script error?

2004-11-18 Thread Stefan Suurmeijer
Hi list,
this is probably some easy configuration issue, but it's now almost 1am 
and I just spent the last 4 hours upgrading my system so by now I 
wouldn't see a solution if it hit me in the face.

I have everything working, except for spamassassin. I had it working 
earlier, but I decided to get the newest version of SA from CPAN and now 
when I try to start spamd I get the following error:

ERROR!  spamassassin script is v3.00, but using modules v3.01!
which is great in not telling me anything useful about what is wrong. 
Can anybody point me in the right direction? Any help would be GREATLY 
appreciated

TIA
Stefan