On Tue, 15 Feb 2005 16:02:47 -0200 "Leo \Costela\ Antunes" <[EMAIL PROTECTED]> wrote:
> Subject: amavis-ng: Fails to start with perl errors > Package: amavis-ng > Version: 0.1.6.9-1 > Severity: critical > Justification: breaks unrelated software > > After an upgrade, amavis started spewing a lot of emergency errors and > stoped working (bringing down all mail delivery with it). > I use the Courier module and it started complaining about two things: > > Feb 15 15:05:21 mime amavis[32018]: ***EMERG*** AMAVIS::MTA::Courier > does not define $AMAVIS::MTA::Courier::VERSION--version check failed at > (eval 5) line 1, <GEN5> line 520. > Feb 15 15:05:21 mime amavis[32018]: ***EMERG*** AMAVIS::MTA::Courier > does not define $AMAVIS::MTA::Courier::VERSION--version check failed at > (eval 5) line 1, <GEN5> line 520. > Feb 15 15:05:21 mime amavis[32018]: ***EMERG*** BEGIN > failed--compilation aborted at (eval 5) line 1, <GEN5> line 520. > Feb 15 15:17:22 mime amavis[25189]: ***EMERG*** Global symbol > "$directory" requires explicit package name > at /usr/share/perl5/AMAVIS/MTA/Courier.pm line 111, <GEN2> line 520. > Feb 15 15:17:22 mime amavis[25189]: ***EMERG*** Compilation failed in > require at (eval 4) line 1, <GEN2> line 520. > Feb 15 15:17:22 mime amavis[25189]: ***EMERG*** Global symbol > "$directory" requires explicit package name > at /usr/share/perl5/AMAVIS/MTA/Courier.pm line 111, <GEN2> line 520. > Feb 15 15:17:22 mime amavis[25189]: ***EMERG*** Compilation failed in > require at (eval 4) line 1, <GEN2> line 520. > Feb 15 15:17:22 mime amavis[25189]: ***EMERG*** BEGIN > failed--compilation aborted at (eval 4) line 1, <GEN2> line 520. > Feb 15 15:17:22 mime amavis[25189]: AMAVIS: Couldn't load > AMAVIS::MTA::Courier > > These errors, of course, repeated a lot. > > I imagine this is something specifically wrong with the Courier module. Please check if this untested patch helps: diff -u -r1.5 Courier.pm --- Courier.pm 13 Jan 2005 00:14:32 -0000 1.5 +++ Courier.pm 16 Feb 2005 07:32:05 -0000 @@ -107,9 +107,9 @@ } last; } + my $directory = $prefix.$message_id; $$args{'message_id'}=$message_id; $$args{'directory'} = $directory; - my $directory = $prefix.$message_id; mkdir "$directory/parts", 0777; # Open message file that is later going to be disected and scanned Sorry, but I'm on the road and not able to test the patch. Thanks Racke -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]