Copying e-mail attachments to a new notes document in a named database

I’ve got a “I wish we could do this” problem and I’ve run out of ideas to try. Currently our marketing people receive e-mails with multiple PDF attachments on from an outside agency.

At present we have a “Before mail arrives” agent in the mail file which that uses the “Extract File” method of the NotesEmbedded object class Ok as the files get copied to the required folder on our DSD.

However, the users have now decided that they want these files to be held in a new notes database where everyone has reader only access. The thing is I can’t seem to find a way to copy each attachment from the e-mail into a rich text field on the new document.

So please has anyone got any ideas…many thanks in advance.

Subject: Copying e-mail attachments to a new notes document in a named database

Haven’t tried this before, but here is something to try…

Remove the attachment from the email to the DSD as before, then to get the file in the new document’s rich text field, use the RichTextItem EmbedObject method. Finally remove the attachment from DSD.

This might also be possible without moving the file to DSD, not too sure what your source parameter would be though.

HTH