With respect to the tree table in Mail in Evolution
i = gettreetablerowindex ('Evolution', 'treetblMail', 'Cabinet')
here 'i' will be having the index of the Cabinet which is a table cell under tree table mail.