[twsocket] BCB4 & MimeDec

Poessler Thomas Thomas.Poessler@uta.at
Thu, 8 Jun 2000 18:15:56 +0200


hello !

I had compiled the version 23.4.2000 and uses the component MimePas
in a small utility.

now i noticed, on an email with a quoted-printable body i got only
every second line.


----with this email sample...
MIME-Version: 1.0
Content-ID: <XXXXXX>
Content-type: application/octet-stream;
	name="INV.XAY.00000054.0715320563"
Content-Transfer-Encoding: quoted-printable

UNA:+.? '
UNB+UNOB:2+XXXX+XXXX+000607:1532+00000000000054'
UNH+000001+INVOIC:D:96B:UN'
BGM+381+75771724'
DTM+137:20000607:102'
RFF+ADE:00994381'
TAX+7+VAT+AT:133:86++1:::20'
CUX+2:EUR:4+5:EUR+1'
QTY+47:2:PCE'
FTX+CUR+1++SIMATIC S5, BUSMODUL:FUER S5-100U/ET 100U/ET 200U:M.KLEMMBLOCK=
 F.SCHRAUBANSCHLUSS:LSNR?:RS20711788 19991215       2,000'
FTX+CUR+1++6ES5700-8MA11'
MOA+203:81.14:EUR'


--i got this lines...
UNA:+.? '
UNH+000001+INVOIC:D:96B:UN'
DTM+137:20000607:102'
TAX+7+VAT+AT:133:86++1:::20'
QTY+47:2:PCE'
 F.SCHRAUBANSCHLUSS:LSNR?:RS20711788 19991215       2,000'
MOA+203:81.14:EUR'


As i played with the Data-pointer in 'MimeDecoderPartLine' i noticed,
the first char of the missing lines is an \0. And so i dont write
the Data-pointer to the file.
Data pointer to "\0NB+UNOB:2+XXXX+XXXX+000607:1532+00000000000054'\0"
On the next call Data points to "DTM+137:20000607:102'\r\n\0"
Note also the \r\n at the end of the line.


any hint ??
thanxs
	tap :-)