Skip to content

Commit

Permalink
Added NOOP command (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
soywod authored Feb 23, 2024
1 parent d97850d commit 17a45f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/smtp/envelope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ impl<T: AsyncRead + AsyncWrite + Unpin> SmtpClient<T> {
self.cmd(b"RSET\r\n").await?.assert_positive_completion()
}

/// Sends a NOOP command to the server.
pub async fn noop(&mut self) -> crate::Result<()> {
self.cmd(b"NOOP\r\n").await?.assert_positive_completion()
}

/// Sends a QUIT command to the server.
pub async fn quit(mut self) -> crate::Result<()> {
self.cmd(b"QUIT\r\n").await?.assert_positive_completion()
Expand Down

0 comments on commit 17a45f5

Please sign in to comment.