Corrupt attachment file

Giganews Newsgroups
Subject: Corrupt attachment file
Posted by:  Tim (tim.ehl…@bridge-way.com)
Date: Wed, 9 Feb 2005

I am using the POP3 component to download an email with text attachments.  My version of indy is 9.00.10.  I have just noticed a very weird anomoly where if my attachment has a . on the 73 char of a line, an extra . is inserted.  The Original attachment looks like the following...

LEDES1998B[]
20050126|896860|601568|0000|14333.3|20041128|20041231||12|F|1.70|.00|450.5|20041213|c300|||011323|Telephone conference with Shari Barry|50-123456|265|REINHARD, CHRISTINE E.|OC|22229[]
20050126|8968601|601568|000|14333.3|20041128|20041231||12|F|1.70|.00|451.5|20041213|c300|||011323|Telephone conference with Shari Barry|50-123456|265|REINHARD, CHRISTINE E.|OC|22229[]

This is 3 lines of text.  The resulting in tmp and being saved by TidAttachment is...

LEDES1998B[]
20050126|896860|601568|0000|14333.3|20041128|20041231||12|F|1.70|.00|450..5|20041213|c300|||011323|Telephone conference with Shari Barry|50-123456|265|REINHARD, CHRISTINE E.|OC|22229[]
20050126|8968601|601568|000|14333.3|20041128|20041231||12|F|1.70|.00|451..5|20041213|c300|||011323|Telephone conference with Shari Barry|50-123456|265|REINHARD, CHRISTINE E.|OC|22229[]

Being that this is an import process for invoice information, you can see why this would be bad.  If I save the entire mail message and decode the attachment the extra period is in there.  Also if i add an extra char or remove an extra char from the originals lines (so the . is not the 73 char) then all works well.

Any ideas on what to do to fix this (other then the obvious hard fix of checking every line for . at 73).  All other functions of this work great.  My hard code solution makes me uneasy because I wonder if its happening any other time that I do not know of.

Thank You,
Tim

Replies