Skip to content

Commit 17a45f5

Browse files
authored
Added NOOP command (#29)
1 parent d97850d commit 17a45f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/smtp/envelope.rs

+5
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ impl<T: AsyncRead + AsyncWrite + Unpin> SmtpClient<T> {
6363
self.cmd(b"RSET\r\n").await?.assert_positive_completion()
6464
}
6565

66+
/// Sends a NOOP command to the server.
67+
pub async fn noop(&mut self) -> crate::Result<()> {
68+
self.cmd(b"NOOP\r\n").await?.assert_positive_completion()
69+
}
70+
6671
/// Sends a QUIT command to the server.
6772
pub async fn quit(mut self) -> crate::Result<()> {
6873
self.cmd(b"QUIT\r\n").await?.assert_positive_completion()

0 commit comments

Comments
 (0)