selectMailbox method

Future<Mailbox> selectMailbox(
  1. Mailbox mailbox, {
  2. bool enableCondStore = false,
  3. QResyncParameters? qresync,
})

Selects the specified mailbox/folder.

Optionally specify if CONDSTORE support should be enabled with enableCondStore.

Optionally specify quick resync parameters with qresync.

Implementation

Future<Mailbox> selectMailbox(
  Mailbox mailbox, {
  bool enableCondStore = false,
  QResyncParameters? qresync,
}) async {
  final box = await _incomingLock.synchronized(
    () => _incomingMailClient.selectMailbox(
      mailbox,
      enableCondStore: enableCondStore,
      qresync: qresync,
    ),
  );
  _selectedMailbox = box;

  return box;
}