Strange attachment behaviour on MIME messages

Hello all,

We have a mail-in database with an agent set to run “Before New Mail Arrives”. The agent reads certain information from the Body field for filing purposes.

We recently added the following code to the agent:

session.ConvertMime=false

Now, messages delivered via SMTP, containing attachments, have the attachments shown in a collapsible section at the top of the mail (new Note behaviour for SMTP mails).

However, if I try to access the attachments through Lotus Script (e.g. in an action button), the HasEmbedded property of the document is true, but the EmbeddedObjects property of the Body field is empty.

The document contains the $FILE field, and the attachments are in the document, because I can access them in the UI.

Messages routed to the same mailbox via Notes routing are fine and can be processed without problems.

I need help accessing these attachments through script, but I have run out of ideas.

Thanks,

Alex Rasmussen

Subject: Strange attachment behaviour on MIME messages

Hi Alex. Did you ever find a solution for this?

Subject: MIMEForceAttachments=2

More details here.

http://www-01.ibm.com/support/docview.wss?rs=463&&uid=swg21219985

and here.

http://www-10.lotus.com/ldd/dominowiki.nsf/dx/15022009125836WEBP48.htm

Subject: MIMEForceAttachments

Simon,

Thanks for your input. My problem is, however, a little different, I think.

I have the $FILE field, but the NotesRichTextItem doesn’t reflect that fact. The NotesDocument says there are attachments, but I can’t access them.

/Alex

Subject: MIMEForceAttachments=2

alex,

i too am having similar issues trying to access attachments from incoming MIME emails.

when debugging my code the document properties show hasembedded = False. however despite this it still passes the line:

If doc.hasembedded then

and then fails at:

Forall o In rtitem.EmbeddedObjects

i have tried both MIMEForceAttachments=1 and 2 with no success.