async fn skip_smtp_greeting<R: AsyncBufReadExt + Unpin>(
stream: &mut R,
) -> Result<()>
Expand description
Reads and ignores SMTP greeting.
This function is used to unify TLS, STARTTLS and plaintext connection setup by skipping the greeting in case of TLS and STARTTLS connection setup.