On 12/14/06, Mark Martinec <[EMAIL PROTECTED]> wrote: > Btw, below is a patch to amavisd which will let the error message > "parsing file(1) results - missing last x results" > be more informative by also reporting exit status from the > file(1) utility. This may help troubleshoot your problem. > > --- amavisd.orig Mon Nov 20 18:35:40 2006 > +++ amavisd Thu Dec 14 14:55:13 2006 > @@ -16290,11 +16290,13 @@ > defined $ln || $!==0 || $!==EAGAIN > or die "Error reading from file(1) utility: $!"; > - if ($index < @part_list) { > - die sprintf("parsing file(1) results - missing last %d results", > - @part_list - $index); > - } > my($err) = 0; $proc_fh->close or $err = $!; > + my(@errmsg); > proc_status_ok($?,$err) > - or die "'file' utility ($file) failed, ".exit_status_str($?,$err); > + or push(@errmsg, "failed, ".exit_status_str($?,$err)); > + if ($index < @part_list) { > + push(@errmsg, sprintf("parsing failure - missing last %d results", > + @part_list - $index)); > + } > + [EMAIL PROTECTED] or die "file(1) utility ($file) ".join(", ",@errmsg); > section_time(sprintf('get-file-type%d', scalar(@part_list))); > } > > > > Mark
Thanks Mark for your answer, my amavisd file has 14938 lines, it does not reach 16290... (amavisd-new from ubuntu packages) I do have this line defined $ln || $!==0 || $!==EAGAIN But at other location... Can I apply your patch manually ? Thanks Andres ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/