mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
docs: update Imap.prepare() documentation
This commit is contained in:
@@ -457,10 +457,10 @@ impl Imap {
|
|||||||
Err(first_error.unwrap_or_else(|| format_err!("No IMAP connection candidates provided")))
|
Err(first_error.unwrap_or_else(|| format_err!("No IMAP connection candidates provided")))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Prepare for IMAP operation.
|
/// Prepare a new IMAP session.
|
||||||
///
|
///
|
||||||
/// Ensure that IMAP client is connected, folders are created and IMAP capabilities are
|
/// This creates a new IMAP connection and ensures
|
||||||
/// determined.
|
/// that folders are created and IMAP capabilities are determined.
|
||||||
pub(crate) async fn prepare(&mut self, context: &Context) -> Result<Session> {
|
pub(crate) async fn prepare(&mut self, context: &Context) -> Result<Session> {
|
||||||
let configuring = false;
|
let configuring = false;
|
||||||
let mut session = match self.connect(context, configuring).await {
|
let mut session = match self.connect(context, configuring).await {
|
||||||
|
|||||||
Reference in New Issue
Block a user