package responses
import "github.com/ncastellani/imapServer/responses"
IMAP responses defined in RFC 3501.
Index ¶
- Variables
- type Authenticate
- type Capability
- type Enabled
- type Expunge
- type Fetch
- type Handler
- type HandlerFunc
- type Idle
- type List
- func (r *List) Handle(resp imap.Resp) error
- func (r *List) Name() string
- func (r *List) WriteTo(w *imap.Writer) error
- type Replier
- type Search
- type Select
- type Status
Variables ¶
ErrUnhandled is used when a response hasn't been handled.
Types ¶
type Authenticate ¶
An AUTHENTICATE response.
func (*Authenticate) Handle ¶
func (r *Authenticate) Handle(resp imap.Resp) error
func (*Authenticate) Replies ¶
func (r *Authenticate) Replies() <-chan []byte
Implements
type Capability ¶
type Capability struct { Caps []string }
A CAPABILITY response. See RFC 3501 section 7.2.1
func (*Capability) WriteTo ¶
func (r *Capability) WriteTo(w *imap.Writer) error
type Enabled ¶
type Enabled struct { Caps []string }
An ENABLED response, defined in RFC 5161 section 3.2.
func (*Enabled) Handle ¶
func (*Enabled) WriteTo ¶
type Expunge ¶
type Expunge struct { SeqNums chan uint32 }
An EXPUNGE response. See RFC 3501 section 7.4.1
func (*Expunge) Handle ¶
func (*Expunge) WriteTo ¶
type Fetch ¶
A FETCH response. See RFC 3501 section 7.4.2
func (*Fetch) Handle ¶
func (*Fetch) WriteTo ¶
type Handler ¶
type Handler interface { // Handle processes a response. If the response cannot be processed, // ErrUnhandledResp must be returned. Handle(resp imap.Resp) error }
Handler handles responses.
type HandlerFunc ¶
type HandlerFunc func(resp imap.Resp) error
HandlerFunc is a function that handles responses.
func (HandlerFunc) Handle ¶
func (f HandlerFunc) Handle(resp imap.Resp) error
Handle implements Handler.
type Idle ¶
type Idle struct { RepliesCh chan []byte Stop <-chan struct{} // contains filtered or unexported fields }
An IDLE response.
func (*Idle) Handle ¶
func (*Idle) Replies ¶
type List ¶
type List struct { Mailboxes chan *imap.MailboxInfo Subscribed bool }
A LIST response. If Subscribed is set to true, LSUB will be used instead. See RFC 3501 section 7.2.2
func (*List) Handle ¶
func (*List) Name ¶
func (*List) WriteTo ¶
type Replier ¶
Replier is a Handler that needs to send raw data (for instance AUTHENTICATE).
type Search ¶
type Search struct { Ids []uint32 }
A SEARCH response. See RFC 3501 section 7.2.5
func (*Search) Handle ¶
func (*Search) WriteTo ¶
type Select ¶
type Select struct { Mailbox *imap.MailboxStatus }
A SELECT response.
func (*Select) Handle ¶
func (*Select) WriteTo ¶
type Status ¶
type Status struct { Mailbox *imap.MailboxStatus }
A STATUS response. See RFC 3501 section 7.2.4
func (*Status) Handle ¶
func (*Status) WriteTo ¶
Source Files ¶
authenticate.go capability.go enabled.go expunge.go fetch.go idle.go list.go responses.go search.go select.go status.go
- Version
- v1.2.13 (latest)
- Published
- Jan 10, 2024
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 2 days ago –
Tools for package owners.