small fixes
This commit is contained in:
parent
faca15f164
commit
70e0da9005
2 changed files with 8 additions and 3 deletions
|
@ -167,8 +167,13 @@ impl<'a> AuthenticatedContext<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let msg = if is_lsub {
|
||||||
|
"LSUB completed"
|
||||||
|
} else {
|
||||||
|
"LIST completed"
|
||||||
|
};
|
||||||
Ok((
|
Ok((
|
||||||
Response::ok("LIST completed")?.with_body(ret),
|
Response::ok(msg)?.with_body(ret),
|
||||||
flow::Transition::None,
|
flow::Transition::None,
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
|
@ -252,7 +252,7 @@ impl MailboxView {
|
||||||
|
|
||||||
let mut ret = vec![];
|
let mut ret = vec![];
|
||||||
for (i, uid, uuid, meta, body) in mails {
|
for (i, uid, uuid, meta, body) in mails {
|
||||||
let mut attributes = vec![MessageAttribute::Uid(uid)];
|
let mut attributes = vec![];
|
||||||
|
|
||||||
let (_uid2, flags) = self
|
let (_uid2, flags) = self
|
||||||
.known_state
|
.known_state
|
||||||
|
@ -270,7 +270,7 @@ impl MailboxView {
|
||||||
|
|
||||||
for attr in fetch_attrs.iter() {
|
for attr in fetch_attrs.iter() {
|
||||||
match attr {
|
match attr {
|
||||||
FetchAttribute::Uid => (),
|
FetchAttribute::Uid => attributes.push(MessageAttribute::Uid(uid)),
|
||||||
FetchAttribute::Flags => {
|
FetchAttribute::Flags => {
|
||||||
attributes.push(MessageAttribute::Flags(
|
attributes.push(MessageAttribute::Flags(
|
||||||
flags.iter().filter_map(|f| string_to_flag(f)).collect(),
|
flags.iter().filter_map(|f| string_to_flag(f)).collect(),
|
||||||
|
|
Loading…
Reference in a new issue