mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 00:06:30 +03:00
cargo fmt
This commit is contained in:
10
src/imap.rs
10
src/imap.rs
@@ -1203,7 +1203,7 @@ impl Imap {
|
|||||||
ImapResult::Failed
|
ImapResult::Failed
|
||||||
} else {
|
} else {
|
||||||
ImapResult::RetryLater
|
ImapResult::RetryLater
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
let set = format!("{}", uid);
|
let set = format!("{}", uid);
|
||||||
if let Some(ref mut session) = &mut *self.session.lock().unwrap() {
|
if let Some(ref mut session) = &mut *self.session.lock().unwrap() {
|
||||||
@@ -1231,7 +1231,7 @@ impl Imap {
|
|||||||
// message was NOT moved, let's try copy
|
// message was NOT moved, let's try copy
|
||||||
if let Some(ref mut session) = &mut *self.session.lock().unwrap() {
|
if let Some(ref mut session) = &mut *self.session.lock().unwrap() {
|
||||||
match session.uid_copy(&set, &dest_folder) {
|
match session.uid_copy(&set, &dest_folder) {
|
||||||
Ok(_) => {},
|
Ok(_) => {}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
info!(context, 0, "Cannot copy message. {:?}", err);
|
info!(context, 0, "Cannot copy message. {:?}", err);
|
||||||
return ImapResult::Failed;
|
return ImapResult::Failed;
|
||||||
@@ -1414,10 +1414,10 @@ impl Imap {
|
|||||||
server_uid: &mut u32,
|
server_uid: &mut u32,
|
||||||
) -> ImapResult {
|
) -> ImapResult {
|
||||||
if *server_uid == 0 {
|
if *server_uid == 0 {
|
||||||
return ImapResult::Failed
|
return ImapResult::Failed;
|
||||||
}
|
}
|
||||||
if !self.is_connected() {
|
if !self.is_connected() {
|
||||||
return ImapResult::RetryLater
|
return ImapResult::RetryLater;
|
||||||
}
|
}
|
||||||
info!(
|
info!(
|
||||||
context,
|
context,
|
||||||
@@ -1435,7 +1435,7 @@ impl Imap {
|
|||||||
"Cannot select folder {} for deleting message.",
|
"Cannot select folder {} for deleting message.",
|
||||||
folder.as_ref()
|
folder.as_ref()
|
||||||
);
|
);
|
||||||
return ImapResult::RetryLater
|
return ImapResult::RetryLater;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
let set = format!("{}", server_uid);
|
let set = format!("{}", server_uid);
|
||||||
|
|||||||
Reference in New Issue
Block a user