Packages

Plover provides a high-level API for connecting to IMAP servers over implicit TLS, authenticating, managing mailboxes, and fetching/searching/storing messages.

Current section

Files

Jump to
plover lib plover response condition.ex
Raw

lib/plover/response/condition.ex

defmodule Plover.Response.Condition do
@moduledoc """
An untagged status response (OK, NO, BAD, BYE, or PREAUTH).
RFC 9051 Section 7.1
"""
defstruct [:status, :code, :text]
@type t :: %__MODULE__{
status: :ok | :no | :bad | :bye | :preauth,
code: Plover.Types.response_code(),
text: String.t()
}
end