
|
[arachne]
||
[Date Prev]
[02-2006 Date Index]
[Date Next]
||
[Thread Prev]
[02-2006 Thread Index]
[Thread Next]
[arachne] Fw: [a4dos-list] Re: Arachne not displaying JPG image in email message
- From: "Glenn McCorkle" <glennmcc@xxxxxxxxxx>
- To: arachne@xxxxxxxxxxxxx
- Date: Mon, 27 Feb 2006 20:26:18 -0500
Arachne at FreeLists---The Arachne Fan Club!
----- Forwarded message begin -----
From: "Glenn McCorkle" <glennmcc@xxxxxxxxxx>
arachne4dos @coollist.com General List ----------------
On ?, Glenn McCorkle wrote:
> On ?, Samuel W. Heywood wrote:
>> This afternoon I received from my sister an email message having a
>> base64 encoded JPG image attachment of about 75K bytes.
<snip>
>> filename="Boy&HisDog.jpg"
>> /9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAPAAA/+4ADkFkb2JlAGTAAAAAAf/b
>> [snipped]
>> ------=_NextPart_000_00A0_01C63B90.CC
<snip>
> And this is a screen capture showing that everything worked fine.
> http://www.cisnet.com/glennmcc/my-stuff/fine.gif
> Here are the 'boundary markers' from the message I received.
> boundary=MIME-multipart-message-boundary-1141079443
> --MIME-multipart-message-boundary-1141079443
> --MIME-multipart-message-boundary-1141079443
> --MIME-multipart-message-boundary-1141079443--
> Here are the 'boundary markers' from the message you received.
>> boundary="----=_NextPart_000_00A0_01C63B90.CCD35850"
> > ------=_NextPart_000_00A0_01C63B90.CCD35850
> > ------=_NextPart_000_00A0_01C63B90.CCD35850
> > ------=_NextPart_000_00A0_01C63B90.CC
> ________________________________________________^^^^^^____
> There seems to be the problem. The end of the last boundary is missing.
> I'll see what happens here if I trimm that off.
> BRB
> Nope... that was not the problem.
> Hmmm, maybe it's due to the fact that the header boundary marker
> is enclosed in quotation marks.
> BRB
> Nope... that's not it either.
> Maybe the difference in the number of 'leading dashes'.
> BRB
> Nope... that's still not it.
> Hmmm, no 'encodeing line' in the MSOE headers.
> X-Encoding: MIME
> BRB
> Nope... that's not it either.
> _____
> I have now tried everything I can think of.
> Could someone please use MSOE to send an attatched JPEG to my address ?
> There just has to be a way to figure this out.
Found the problem.....
From the original message that Sam had trouble with....
filename="Boy&HisDog.jpg"
It's the '&' symbol in the filename.
http://www.cisnet.com/glennmcc/my-stuff/not-fine.gif
I will look into modifying Insight.exe to handle the '&' symbol.
BRB
Done.
Insight.exe now handles the '&' symbol by converting it to an underscore.
http://www.cisnet.com/glennmcc/my-stuff/and-fine.gif
http://www.cisnet.com/glennmcc/ara-gpl/insight.zip
(complete SRC code and both English & Russian .EXEs)
http://www.cisnet.com/glennmcc/ara-gpl/ins_43en.zip
(Enlish .EXE only)
http://www.cisnet.com/glennmcc/ara-gpl/ins_43ru.zip
(Russian .EXE only)
_____________
It was as simple as adding the '&' symbol to the code Michal Tyc wrote.
// BEGIN 2004-07-21 MHT
{
int si = 0; // filename suffix index
int i = strlen(mhdr->filename);
int l = i;
mhdr->tofile |= i; // make tofile nonzero if filename not empty
while (--i >= 0) // scan filename from right to left
{
signed char c = (signed char) mhdr->filename[i];
if (c == '.')
if (!si && i) // suffix not found yet, and not an initial '.'
si = i; // remember suffix position then
else
goto und_repl; // replace invalid '.'
else if (c <= ' ' || // also catches 128..255 thanks to signed char
//!!glennmcc: Feb 27, 2006 -- added the '&' symbol to the list
strchr("\"*+,/:;<=>?[\\]|\x7F&", c))
und_repl:
mhdr->filename[i] = '_'; // replace other invalid characters
__________
------ Forwarded message end ------
--
Glenn
http://www.delorie.com/listserv/mime/
http://www.cisnet.com/glennmcc/
http://www.law.cornell.edu/constitution/constitution.table.html
Arachne at FreeLists
-- Arachne, The Premier GPL Web Browser/Suite for DOS --
|

|