Fix subject field
Sample email from Courier with connection error
Improved code for detecting connection error
Update test code for checking connection error