Skip to content

LIST before SELECT? #28

@aus70

Description

@aus70

Presently, it is necessary to issue a LIST to populate the client state with the mailbox list before being able to SELECT a mailbox, otherwise the client info looks like this:

%Blop.Client{
  conn: {:ssl,
   {:sslsocket, #Port<0.8>, #PID<0.207.0>, #PID<0.206.0>, :gen_tcp,
    :tls_gen_connection, #Reference<0.2298897627.2448031745.196175>, :undefined}},
  capability: "* OK [CAPABILITY IMAP4rev1 AUTH=PLAIN LOGIN] Proxy Ready\r\n",
  selected_mailbox: nil,
  mailboxes: [],
  logged_in: true,
  tag_number: 3
}

where the mailbox list is empty. Is this the expected behavior or should the maibox list be populated when the client is created?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions