Getmimeentiy returns null

Hi,

I have exactly the same issue as Isabelle R (http://tinyurl.com/3xepen4):

  • get the doc by view.getfirstdoc

  • get the item by doc.getfirstitem

  • item.getmimeentity is null despite in the notes client properties, I can see MIME_Part as type of the item.

I noticed that the type of the item in the debugger is 1 (NotesRichTextItem) should be 25 (MIME_Part).

I tried Isabelle’s solution with no luck.

Here is the modified code which don’t work.

vTmp = CStr(oDoc.Universalid )

dim oDoc as NotesDocument

dim oPageBody as NotesRichTextItem (or NotesItem)

dim oBody as NotesMIMEEntity

Set oDoc = nothing

Set oDoc = oDb.Getdocumentbyunid(vTmp)

Set oPageBody = oTmpDoc.GetFirstItem(“PageBody”)

Set oBody = oPageBody.GetMIMEEntity

The original code simply didn’t killed oDoc but processed oDoc directly instead. It makes no difference.

Isabelle, if you happen to read this, did you find something else ?

Anybody else got an idea on the reason ?

More important anybody has a solution ?

Subject: convertmime?

Have you done this - needs to be false, then set back to true at the end

Subject: yes, convertmime

I feel a bit stupid :-/Thanks a lot Dan.

Subject: don’t feel stupid:)

I work with mimeentities a lot, and it took me half a day to realise I’d done exactly this the other day. Debugging and finding the item returning the ‘wrong’ type got me rather frustrated to put it mildly.