Debian 5.0.7 (lenny)
Error in mail.err:
Dec 12 20:00:12 isp amavis[1667]: (01667-10) (!!)SA failed: Can’t locate object method „READ“ via package „Amavis::IO::FileHandle“ at /usr/local/share/perl/5.10.0/Mail/SpamAssassin/Message.pm line 143, line 35892. at (eval 94) line 420, line 35892.
Fixed with: Spamassasin Bug 6257 ( for amavised-new 2.6.1)
Diff :
[code]
— amavisd~ 2008-06-29 02:37:58.000000000 +0200
+++ amavisd 2009-12-11 18:18:23.000000000 +0100
@@ -20295,3 +20295,3 @@
my($which_section) = ‚SA prepare‘;
– my($data_representation) = ‚GLOB‘; # pass data to SA as ARRAY or a GLOB
+ my($data_representation) = ‚ARRAY‘; # pass data to SA as ARRAY or a GLOB
my($saved_umask) = umask; my($saved_pid) = $$;
[/code]
Change /usr/sbin/amavisd-new
From:
[code]
sub call_spamassassin($$$) {
my($self,$msginfo,$lines) = @_;
my($mail_obj,$per_msg_status);
my($which_section) = ‚SA prepare‘;
my($data_representation) = ‚GLOB‘; # pass data to SA as ARRAY or a GLOB
…
[/code]
To:
[code]
sub call_spamassassin($$$) {
my($self,$msginfo,$lines) = @_;
my($mail_obj,$per_msg_status);
my($which_section) = ‚SA prepare‘;
my($data_representation) = ‚ARRAY‘; # pass data to SA as ARRAY or a GLOB
…
[/code]
/etc/init.d/amavis restart
Eine Antwort zu “SA failed: Can’t locate object method „READ“ via package „Amavis::IO::FileHandle“”
thanks for tip man, my amavis stopped on this morning and causing various problems