Remove debug option
Correct function for extracting of email content