Copy Rich Text field with attachments produces files with ATT file name

I have a database that was created in R5.

I have written an agent to copy some documents to another shell database. I only want 6 of the fields to be copied to the resulting shell database document so I wrote LotusScript to only copy the fields I want. One of the fields is a Rich Text field that only contains PDF and HTML attachments.

The script runs fine and copies everything over.

If a user removes an attachment from the source document and reattaches a file to the rich text field, when the agent runs and copies the rich text field over to the shell database, both attachments are stored with a filename starting with “ATT” and there is no extension on the file. The attachments in the source database look fine, the $File values look correct and the proper filenames appear. In the destination/shell database, they do not look correct.

If the user goes back in with R5 and resaves the attachments, the script will correctly transfer the attachments with the proper filenames.

We are using 6.02CF2.

Any ideas? Suggestions?