Problem with detach file from Memo document with LS

Hi to everyone i have a problem.I have a richtext field where i must import a mail, but i can’t import also the file that are attached to the mail. How can i do?

I would like to do this by lotus script.

Can someone help me?

Thank you a lot!

Subject: Problem with detach file from Memo document with LS

The easiest way, if your requirements are flexible enough, is to create a new notesdocument and then use CopyAllItems to copy everything from the memo to your new document.

Then, add/change/delete fields on the new doc before saving it for the first time.

Subject: RE: Problem with detach file from Memo document with LS

The problem is that i must copy the attachment in the same open document in which i import the mail.

Can you help me in this way?

Thanks