[Mimedefang] Feature Request

Michael Lang michi+mimedefang at relay3.jackal-net.at
Mon Oct 18 10:20:06 EDT 2004


Dear MIMEDefang Team,

my boss and i, discussed about some patching strategies for MIMEDefang
as we are using it in an ISP Enviroment. We have setup an extra RPM for
our Patches to MIMEDefang.pl and its filterFile. 

As this method isnt nice to support, we´d like to request a "include"
Module Feature for MIMEDefang as show in the Patch below.

$ diff -u mimedefang.pl mimedefang.request
--- mimedefang.pl       2004-09-23 14:38:09.000000000 +0200
+++ mimedefang.request  2004-10-18 16:15:00.370855112 +0200
@@ -26,6 +26,16 @@
 # won't conflict with the built-in one on RPM-based platforms.
 use lib '/usr/lib/perl5/site_perl/5.8.0';
  
+# Include 3Party Modules
+opendir(DIR, '/etc/mimedefang/modules/') ||
+ die "Couldnt read Modules Include Dir /etc/mimedefang/modules/\n";
+
+my @files = sort (grep {/\.pm$/} (readdir(DIR)));
+closedir(DIR);
+foreach my $f (@files)  {
+        require "/etc/mimedefang/modules/$f";
+}
+
 # MIME-Tools requires this?
 require 5.001;
 package main;


We are using LDAP as an criteria if the UserAddress gets filtered or
not, which we are including in a seperate Module. 
This Module gets accessed by our filter using its name::function. The
Module itself requires the Recipientlist from the main Package which is
accessed by @main::Recipients, also as the main::md_syslog function.

please update my status on this request.

Kind regards
Michael Lang

Ps.: please feel free to contact me for any questions or code samples.

-- 
Michael Lang <michi+mimedefang at relay3.jackal-net.at>



More information about the MIMEDefang mailing list