trim response line for misbehaving IMAP servers