mirror of
https://git.meli.delivery/meli/meli
synced 2024-11-19 03:25:38 +00:00
Make small cosmetic fixes
This commit is contained in:
parent
f208948651
commit
f5e694cf5a
@ -639,13 +639,7 @@ impl ImapType {
|
||||
let server_username = get_conf_val!(s["server_username"])?;
|
||||
let server_password = get_conf_val!(s["server_password"])?;
|
||||
let server_port = get_conf_val!(s["server_port"], 143)?;
|
||||
let use_starttls = get_conf_val!(s["use_starttls"], {
|
||||
if server_port == 993 {
|
||||
false
|
||||
} else {
|
||||
true
|
||||
}
|
||||
})?;
|
||||
let use_starttls = get_conf_val!(s["use_starttls"], !(server_port == 993))?;
|
||||
let danger_accept_invalid_certs: bool =
|
||||
get_conf_val!(s["danger_accept_invalid_certs"], false)?;
|
||||
let server_conf = ImapServerConf {
|
||||
|
@ -420,6 +420,7 @@ impl Component for Listing {
|
||||
}
|
||||
self.dirty = false;
|
||||
}
|
||||
|
||||
fn process_event(&mut self, event: &mut UIEvent, context: &mut Context) -> bool {
|
||||
match event {
|
||||
UIEvent::StartupCheck(ref f) => {
|
||||
|
@ -160,8 +160,8 @@ impl ThreadView {
|
||||
}
|
||||
self.set_dirty(true);
|
||||
}
|
||||
|
||||
fn initiate(&mut self, expanded_hash: Option<ThreadNodeHash>, context: &Context) {
|
||||
/* stack to push thread messages in order in order to pop and print them later */
|
||||
let account = &context.accounts[self.coordinates.0];
|
||||
let mailbox = &account[self.coordinates.1].unwrap();
|
||||
let threads = &account.collection.threads[&mailbox.folder.hash()];
|
||||
|
Loading…
Reference in New Issue
Block a user