[Mimedefang] Problem with Microsoft Calendar Items

David F. Skoll dfs at roaringpenguin.com
Sun Jul 11 11:23:17 EDT 2010


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);
     }
 }



More information about the MIMEDefang mailing list