From 201269423dfcc89fa64584348021333503ee261e Mon Sep 17 00:00:00 2001 From: Massimiliano Torromeo Date: Sat, 6 Oct 2018 10:02:10 +0200 Subject: [PATCH] Renamed uid_move to uid_mv --- src/client.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client.rs b/src/client.rs index fa55b62..5248729 100644 --- a/src/client.rs +++ b/src/client.rs @@ -574,7 +574,7 @@ impl Session { /// Moves each message in the uid set into the destination mailbox. /// The UID MOVE command is defined in [RFC 6851 - "Internet Message Access Protocol (IMAP) /// - MOVE Extension"](https://tools.ietf.org/html/rfc6851#section-3). - pub fn uid_move(&mut self, uid_set: &str, mailbox_name: &str) -> Result<()> { + pub fn uid_mv(&mut self, uid_set: &str, mailbox_name: &str) -> Result<()> { self.run_command_and_check_ok(&format!( "UID MOVE {} {}", uid_set, @@ -1210,7 +1210,7 @@ mod tests { } #[test] - fn uid_move() { + fn uid_mv() { let response = b"* OK [COPYUID 1511554416 142,399 41:42] Moved UIDs.\r\n\ * 2 EXPUNGE\r\n\ * 1 EXPUNGE\r\n\ @@ -1219,7 +1219,7 @@ mod tests { let command = format!("a1 UID MOVE 41:42 {}\r\n", quote!(mailbox_name)); let mock_stream = MockStream::new(response); let mut session = mock_session!(mock_stream); - session.uid_move("41:42", mailbox_name).unwrap(); + session.uid_mv("41:42", mailbox_name).unwrap(); assert!( session.stream.get_ref().written_buf == command.as_bytes().to_vec(), "Invalid uid move command"