@@ -837,7 +837,7 @@ impl<T: Read + Write + Unpin + fmt::Debug + Send> Session<T> {
837837 mailbox_name : S2 ,
838838 ) -> Result < ( ) > {
839839 self . run_command_and_check_ok ( & format ! (
840- "COPY {} {} " ,
840+ "COPY {} \" {} \" " ,
841841 sequence_set. as_ref( ) ,
842842 mailbox_name. as_ref( )
843843 ) )
@@ -854,7 +854,7 @@ impl<T: Read + Write + Unpin + fmt::Debug + Send> Session<T> {
854854 mailbox_name : S2 ,
855855 ) -> Result < ( ) > {
856856 self . run_command_and_check_ok ( & format ! (
857- "UID COPY {} {} " ,
857+ "UID COPY {} \" {} \" " ,
858858 uid_set. as_ref( ) ,
859859 mailbox_name. as_ref( )
860860 ) )
@@ -899,7 +899,7 @@ impl<T: Read + Write + Unpin + fmt::Debug + Send> Session<T> {
899899 mailbox_name : S2 ,
900900 ) -> Result < ( ) > {
901901 self . run_command_and_check_ok ( & format ! (
902- "MOVE {} {} " ,
902+ "MOVE {} \" {} \" " ,
903903 sequence_set. as_ref( ) ,
904904 validate_str( mailbox_name. as_ref( ) ) ?
905905 ) )
@@ -918,7 +918,7 @@ impl<T: Read + Write + Unpin + fmt::Debug + Send> Session<T> {
918918 mailbox_name : S2 ,
919919 ) -> Result < ( ) > {
920920 self . run_command_and_check_ok ( & format ! (
921- "UID MOVE {} {} " ,
921+ "UID MOVE {} \" {} \" " ,
922922 uid_set. as_ref( ) ,
923923 validate_str( mailbox_name. as_ref( ) ) ?
924924 ) )
@@ -965,7 +965,7 @@ impl<T: Read + Write + Unpin + fmt::Debug + Send> Session<T> {
965965 ) -> Result < impl Stream < Item = Result < Name > > + ' _ + Send > {
966966 let id = self
967967 . run_command ( & format ! (
968- "LIST {} {} " ,
968+ "LIST {} \" {} \" " ,
969969 quote!( reference_name. unwrap_or( "" ) ) ,
970970 mailbox_pattern. unwrap_or( "\" \" " )
971971 ) )
@@ -1001,7 +1001,7 @@ impl<T: Read + Write + Unpin + fmt::Debug + Send> Session<T> {
10011001 ) -> Result < impl Stream < Item = Result < Name > > + ' _ + Send > {
10021002 let id = self
10031003 . run_command ( & format ! (
1004- "LSUB {} {} " ,
1004+ "LSUB {} \" {} \" " ,
10051005 quote!( reference_name. unwrap_or( "" ) ) ,
10061006 mailbox_pattern. unwrap_or( "" )
10071007 ) )
@@ -1056,7 +1056,7 @@ impl<T: Read + Write + Unpin + fmt::Debug + Send> Session<T> {
10561056 ) -> Result < Mailbox > {
10571057 let id = self
10581058 . run_command ( & format ! (
1059- "STATUS {} {}" ,
1059+ "STATUS \" {} \" {}" ,
10601060 validate_str( mailbox_name. as_ref( ) ) ?,
10611061 data_items. as_ref( )
10621062 ) )
0 commit comments