mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 21:36:29 +03:00
Streamline access/working with configured params and configured addr (#3219)
This commit is contained in:
@@ -224,7 +224,7 @@ impl Imap {
|
||||
bail!("IMAP Connect without configured params");
|
||||
}
|
||||
|
||||
let param = LoginParam::from_database(context, "configured_").await?;
|
||||
let param = LoginParam::load_configured_params(context).await?;
|
||||
// the trailing underscore is correct
|
||||
|
||||
let imap = Self::new(
|
||||
@@ -1119,11 +1119,7 @@ impl Imap {
|
||||
.session
|
||||
.as_mut()
|
||||
.context("IMAP No Connection established")?;
|
||||
let self_addr = context
|
||||
.get_config(Config::ConfiguredAddr)
|
||||
.await?
|
||||
.context("not configured")?;
|
||||
|
||||
let self_addr = context.get_configured_addr().await?;
|
||||
let search_command = format!("FROM \"{}\"", self_addr);
|
||||
let uids = session
|
||||
.uid_search(search_command)
|
||||
|
||||
Reference in New Issue
Block a user