Make small cosmetic fixes

This commit is contained in:
Manos Pitsidianakis 2020-02-06 01:50:15 +02:00
parent f208948651
commit f5e694cf5a
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710
3 changed files with 3 additions and 8 deletions

View File

@ -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 {

View File

@ -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) => {

View File

@ -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()];