Bradley,

> I downgraded both file and libmagic1 and had the same problem. However,
> thanks to your subsequent email, I did get a lot better data from amavisd.
> http://www.tux.org/~storm/files/amavisd.log

Thanks, that is more helpful.

It sounds like a known PerlIO bug:
  http://rt.perl.org/rt3/Ticket/Display.html?id=39060

Could it be that your file(1) utility forgets
to terminate the last line of its output by a newline?

Would you please apply the following change to your 2.4.1,
which will make the debug log to show whether a line read
from file(1) did have a trailing \n or not:

--- amavisd.orig        Mon Jun 19 15:51:00 2006
+++ amavisd     Tue Nov 14 18:41:56 2006
@@ -15177,6 +15177,6 @@
     my($index)=0; my($ln);
     for ($! = 0; defined($ln=$proc_fh->getline); $! = 0) {
-      chomp($ln);
       do_log(5, "result line from file(1): %s", $ln);
+      chomp($ln);
       if ($index > $#file_list) {
         do_log(-1, "NOTICE: Skipping extra output from file(1): %s", $ln);

and repeat your experiment. I'm only interested in (all) debug lines
containing text (without quotes):  "result line from file(1):"

  Mark




-------------------------------------------------------------------------
SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
Check out Slashdot's new job board. Browse through tons of technical jobs
posted by companies looking to hire people just like you.
http://jobs.slashdot.org/
_______________________________________________
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