Jon Rowlan wrote:

> My distro doesn't yet support that version of MD. Is there a workaround
> that I can use? Can I add a condition to my filter whilst I wait for the
> stable version in Debian?

Just compile from source.  It's not very hard.

Or you can apply this patch to mimedefang.pl.  (I pulled it out of
git; it may or may not apply cleanly to your version.)  The patch is
actually against mimdefang.pl.in, but just change all occurences of
that to mimedefang.pl to get it to apply.

Regards,

David.

diff --git a/mimedefang.pl.in b/mimedefang.pl.in
index 52c1ad4..b6477b3 100755
--- a/mimedefang.pl.in
+++ b/mimedefang.pl.in
@@ -693,7 +693,6 @@ sub rebuild_entity ($$) {
     my @parts = $in->parts;
     my($type) = $in->mime_type;
     $type =~ tr/A-Z/a-z/;
-    my($disposition) = $in->head->mime_attr("Content-Disposition");
     my($body) = $in->bodyhandle;
     my($fname) = takeStabAtFilename($in);
     $fname = "" unless defined($fname);
@@ -705,7 +704,6 @@ sub rebuild_entity ($$) {
        $in->head->mime_attr('Content-Type', $type);
     }
 
-    $disposition = "inline" unless defined($disposition);
     if (!defined($body)) {
        $Action = "accept";
        if (defined(&filter_multipart)) {
@@ -756,7 +754,6 @@ sub rebuild_entity ($$) {
        }
 
        # Otherwise, accept it
-       $in->head->mime_attr("Content-Disposition" => $disposition);
        $out->add_part($in);
     }
 }
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to