Following patch fixes inline images with content dispositions sent
from Netscape 4.5. The mime header was:
Content-Type: image/gif;
name="foo.gif"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="foo.gif"
The ";" was deleted in the original code. I changed it to replace
it with a space.
Rob
----------------------------------------------------------------
Index: readmail.pl
===================================================================
retrieving revision 1.1
retrieving revision 1.2
diff -c -r1.1 -r1.2
*** readmail.pl 1999/04/04 03:29:41 1.1
--- readmail.pl 1999/04/12 19:25:32 1.2
***************
*** 690,696 ****
if ($_ = $hfields{'content-disposition'}) {
($disp) = /^\s*(\S+)/;
! $disp =~ s/;//g; # Remove semi-colon if grabbed
if (/filename="([^"]+)"/i) {
$filename = $1;
} elsif (/filename=(\S+)/i) {
--- 690,696 ----
if ($_ = $hfields{'content-disposition'}) {
($disp) = /^\s*(\S+)/;
! $disp =~ s/;/ /g; # Remove semi-colon if grabbed
if (/filename="([^"]+)"/i) {
$filename = $1;
} elsif (/filename=(\S+)/i) {