Bob, Bart, Michael, Chris,

> > Jun 25 11:12:59 sunrise amavis[1159]: (01159-01)
> > TROUBLE in check_mail: mime_decode-1 FAILED:
> > Error reading: Resource temporarily unavailable
> > at (eval 64) line 153, <GEN9> line 1.
...
> > Here comes the weird part, when i tried to debug it, and set the log
> > level to 5... it just works... (not pasting everything...) ...

Could you please apply the following workaround (the patch is
against 2.3.2-rc1, but should apply against somewhat older versions
as well). The patch attempts to ignore a EAGAIN status code
when reading from a file(1) utility. The EAGAIN seems to be
an (inappropriate) artifact of the way Perl I/O works, which
apparently changed in 5.8.7.

--- amavisd.orig        Tue Jun 28 19:45:43 2005
+++ amavisd     Tue Jun 28 20:40:19 2005
@@ -12956,5 +12956,5 @@
   @EXPORT_OK = qw(&init &decompose_part &determine_file_types);
 }
-use Errno qw(ENOENT EACCES);
+use Errno qw(ENOENT EACCES EAGAIN);
 use IO::File qw(O_CREAT O_EXCL O_WRONLY);
 use File::Basename qw(basename);
@@ -13096,5 +13096,6 @@
       }
     }
-    defined $ln || $!==0  or die "Error reading: $!";
+    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",


Mark




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
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