Andres,
> On 12/14/06, Michael Scheidell <[EMAIL PROTECTED]> wrote:
> > Try a newer version of 'file' and make sure its first in the path?
>
> Sorry, but, what 'file' ? amavisd-new ?
> It started to work bad from time to time, no changes were made...

man 1 file


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

-------------------------------------------------------------------------
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/

Reply via email to