SpamAssassin integration did not work properly after refactoring of TCPConnection.