--- a/mimecut.pl Thu Nov 01 21:51:49 2007 +0000
+++ b/mimecut.pl Fri Nov 02 00:08:56 2007 +0000
@@ -93,7 +93,7 @@
(undef, $boundary)
= ($header{"content-type"} =~ /boundary=(['"])(.*?)\1/);
### h{content-type}: $header{"content-type"}
- ### type: $type
+ ### type: $type
### bound: $boundary
}
$boundary ||= $arg{boundary};
@@ -121,8 +121,9 @@
$header =~ s/\s*$//;
$header =~ s/^/-- /gm;
- print "Content-Type: text/plain"
- . $eol x 2
+ print "Content-Type: text/plain$eol"
+ . "Content-Disposition: inline$eol"
+ . $eol
. "Content removed ("
. localtime() . ")$eol"
. $header
@@ -162,8 +163,8 @@
return $tmp;
}
-# in: current message file handle
-# out: ($orignal_header, %parsed_header)
+# in: current message file handle
+# out: ($orignal_header, %parsed_header)
sub read_header(*) {
my ($msg) = @_;
my $h = "";
@@ -185,4 +186,4 @@
":unix_from:" => split(/^(\S+):\s*/m, $_));
}
__END__
-# vim:ts=4
+# vim:ts=4 et: