Mark,

On Tuesday, 29. May 2007, Mark Martinec wrote:
> > Is there a way to automatically load these modules?
>
> Unfortunately these three or four modules need to be
> available for each child process startup and are read then
> as needed (depending on characters that need to be processed).
> These are not true Perl code modules, but just return
> a simple multiline string and can not be preloaded - one of
> the ugly approaches of unicode implementation in Perl.
>
> It is not a big deal though, files are very small.
> The main problem with them is that a chrooted amavisd
> needs to have them in the jail (unlike other Perl modules).

Thanks for the detailed explanation. I backported your logging improvement to
amavisd 2.3.3 and post it here in case anyone might be interested:

--- amavisd-new-2.3.3/amavisd   Mon Aug 22 01:46:15 2005
+++ amavisd-new.patched/amavisd Tue May 29 13:12:18 2007
@@ -6796,8 +6796,10 @@ sub process_request {
   }
   my(@modules_extra) = grep {!exists $modules_basic{$_}} keys %INC;
 # do_log(0, "modules loaded: ".join(", ", sort keys %modules_basic));
-  do_log(1, "extra modules loaded: ".
-            join(", ", sort @modules_extra))  if @modules_extra;
+  if (@modules_extra) {
+    do_log(1, "extra modules loaded: ". join(", ", sort @modules_extra));
+    %modules_basic = %INC;
+  }
 }

 ### override Net::Server::PreForkSimple::done (needed for Net::Server <= 0.87)


Thomas

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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