From fbb4b23f757c3eb745b67051a04cf312d1336559 Mon Sep 17 00:00:00 2001 From: Artem Date: Thu, 5 Nov 2015 13:43:52 +0300 Subject: [PATCH] Expose run_command --- src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.rs b/src/client.rs index 391f81d..9baa21d 100644 --- a/src/client.rs +++ b/src/client.rs @@ -222,14 +222,14 @@ impl IMAPStream { self.run_command_and_check_ok(&format!("COPY {} {}", sequence_set, mailbox_name).to_string()) } - fn run_command_and_check_ok(&mut self, command: &str) -> Result<()> { + pub fn run_command_and_check_ok(&mut self, command: &str) -> Result<()> { match self.run_command(command) { Ok(lines) => IMAPStream::parse_response_ok(lines), Err(e) => Err(e) } } - fn run_command(&mut self, untagged_command: &str) -> Result> { + pub fn run_command(&mut self, untagged_command: &str) -> Result> { let command = self.create_command(untagged_command.to_string()); match self.write_str(&*command) {