Hi,One of my application is mail-in db which needs to process the incoming mail and need to extract the attachment from the mail.This agent has been signed with the old id. If I sign the agent using our new id , Getting the document handle but not able to read the attachment. Now I found that this mail is in MIME format, so I tried to extract using NotesMimeEntity class and its working fine. Now my question is why my new id is not able to read the attachment using old code when the old id is able to do it? following is the snippet of my code:
Set rtitem = doc.GetFirstItem( “Body” )
If ( rtitem.Type = RICHTEXT ) Then
If Isarray( rtitem.EmbeddedObjects ) Then
Forall objEmbed In rtitem.EmbeddedObjects
If ( objEmbed.Type = EMBED_ATTACHMENT ) Then
Call agentLog.LogAction ("Info >> Attachment name: " + objEmbed.name)
End If
End Forall
End If
End If
Can anyone advise is there any MIME settings need to be done in order to execute the above code?