I\'ve handling the SMTP server input emails log with my unittest and have the gzip data in email attachment. As i need to exclude unnecessary data from log i open the file w