Email in the Inbox folder

Hi all,

Can anyone help me to detect if the selected item is an email (in the Inbox folder) or point to a documentation which has some help?

I use this check:

if(document.getItemValueString(“Form”) == “Memo”)

where document is lotus.domino.Document object.

This works fine for the mail in Draft and Sent folders, but document.getItemValueString(“Form”) returns an empty string when I select an email in Inbox.

This call works fine for the Calendar and Person and Event too.

Thanks in advance for your help.

Gor