i am new to zimlets .
i have gone through the wiki zimbra and other zimlet codes but am not able to solve this problem .

I want to create a sample zimlet through which il be able to extract the Mail details viz. From field , Subject Field , Body , etc .

I tried doing this ::
1.Creating a var of ZmMailMsg in the js .
var msg = new ZmMailMsg();
Then tried to fetch the from field by simply msg.from and msg.subject (as par a zimlet i have seen ) and the values returned are "undefined".Why is this happening like this ?
What is the mistake in my Coding.
pLease Help me out here.

Its Urgent .