mirror of
https://github.com/emersion/go-imap
synced 2026-07-01 13:31:07 +00:00
This will be useful for extending SELECT [1] and makes the client more consistent with the server. [1]: https://www.rfc-editor.org/rfc/rfc4466#section-2.1
23 lines
568 B
Go
23 lines
568 B
Go
package imap
|
|
|
|
// SelectOptions contains options for the SELECT or EXAMINE command.
|
|
type SelectOptions struct {
|
|
ReadOnly bool
|
|
}
|
|
|
|
// SelectData is the data returned by a SELECT command.
|
|
//
|
|
// In the old RFC 2060, PermanentFlags, UIDNext and UIDValidity are optional.
|
|
type SelectData struct {
|
|
// Flags defined for this mailbox
|
|
Flags []Flag
|
|
// Flags that the client can change permanently
|
|
PermanentFlags []Flag
|
|
// Number of messages in this mailbox (aka. "EXISTS")
|
|
NumMessages uint32
|
|
UIDNext uint32
|
|
UIDValidity uint32
|
|
|
|
List *ListData // requires IMAP4rev2
|
|
}
|