To get the text from the email I recommend:
- XClick (set focus on the email)
- XType | ${KEY_CTRL+KEY_A}
- XType | ${KEY_CTRL+KEY_V}
=> now the value is in !clipboard
See also Desktop automation-number harvesting from desktop screen - #2 by admin and Desktop Automation - OCR Latest Entry In A List - #2 by Plankton