Object type check

Bug fixing
- Check if the item is a mail before extracting the informations