Renamed uid_move to uid_mv
This commit is contained in:
parent
a6f0240f94
commit
201269423d
1 changed files with 3 additions and 3 deletions
|
|
@ -574,7 +574,7 @@ impl <T: Read + Write> Session<T> {
|
|||
/// 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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue