package commands
import "github.com/ncastellani/imapServer/commands"
Package commands implements IMAP commands defined in RFC 3501.
Index ¶
- type Append
- func (cmd *Append) Command() *imap.Command
- func (cmd *Append) Parse(fields []interface{}) (err error)
- type Authenticate
- func (cmd *Authenticate) Command() *imap.Command
- func (cmd *Authenticate) Handle(mechanisms map[string]sasl.Server, conn AuthenticateConn) error
- func (cmd *Authenticate) Parse(fields []interface{}) error
- type AuthenticateConn
- type Capability
- type Check
- type Close
- type Copy
- type Create
- type Delete
- type Enable
- type Expunge
- type Fetch
- type Idle
- type List
- type Login
- type Logout
- type Move
- type Noop
- type Rename
- type Search
- type Select
- type StartTLS
- type Status
- type Store
- type Subscribe
- func (cmd *Subscribe) Command() *imap.Command
- func (cmd *Subscribe) Parse(fields []interface{}) error
- type Uid
- type Unselect
- type Unsubscribe
Types ¶
type Append ¶
Append is an APPEND command, as defined in RFC 3501 section 6.3.11.
func (*Append) Command ¶
func (*Append) Parse ¶
type Authenticate ¶
Authenticate is an AUTHENTICATE command, as defined in RFC 3501 section 6.2.2.
func (*Authenticate) Command ¶
func (cmd *Authenticate) Command() *imap.Command
func (*Authenticate) Handle ¶
func (cmd *Authenticate) Handle(mechanisms map[string]sasl.Server, conn AuthenticateConn) error
func (*Authenticate) Parse ¶
func (cmd *Authenticate) Parse(fields []interface{}) error
type AuthenticateConn ¶
type AuthenticateConn interface { io.Reader // WriteResp writes an IMAP response to this connection. WriteResp(res imap.WriterTo) error }
AuthenticateConn is a connection that supports IMAP authentication.
type Capability ¶
type Capability struct{}
Capability is a CAPABILITY command, as defined in RFC 3501 section 6.1.1.
func (*Capability) Command ¶
func (c *Capability) Command() *imap.Command
func (*Capability) Parse ¶
func (c *Capability) Parse(fields []interface{}) error
type Check ¶
type Check struct{}
Check is a CHECK command, as defined in RFC 3501 section 6.4.1.
func (*Check) Command ¶
func (cmd *Check) Command() *imap.Command
func (*Check) Parse ¶
type Close ¶
type Close struct{}
Close is a CLOSE command, as defined in RFC 3501 section 6.4.2.
func (*Close) Command ¶
func (cmd *Close) Command() *imap.Command
func (*Close) Parse ¶
type Copy ¶
type Copy struct { SeqSet *imap.SeqSet Mailbox string }
Copy is a COPY command, as defined in RFC 3501 section 6.4.7.
func (*Copy) Command ¶
func (cmd *Copy) Command() *imap.Command
func (*Copy) Parse ¶
type Create ¶
type Create struct { Mailbox string }
Create is a CREATE command, as defined in RFC 3501 section 6.3.3.
func (*Create) Command ¶
func (cmd *Create) Command() *imap.Command
func (*Create) Parse ¶
type Delete ¶
type Delete struct { Mailbox string }
Delete is a DELETE command, as defined in RFC 3501 section 6.3.3.
func (*Delete) Command ¶
func (cmd *Delete) Command() *imap.Command
func (*Delete) Parse ¶
type Enable ¶
type Enable struct { Caps []string }
An ENABLE command, defined in RFC 5161 section 3.1.
func (*Enable) Command ¶
func (cmd *Enable) Command() *imap.Command
func (*Enable) Parse ¶
type Expunge ¶
type Expunge struct{}
Expunge is an EXPUNGE command, as defined in RFC 3501 section 6.4.3.
func (*Expunge) Command ¶
func (cmd *Expunge) Command() *imap.Command
func (*Expunge) Parse ¶
type Fetch ¶
Fetch is a FETCH command, as defined in RFC 3501 section 6.4.5.
func (*Fetch) Command ¶
func (*Fetch) Parse ¶
type Idle ¶
type Idle struct{}
An IDLE command. Se RFC 2177 section 3.
func (*Idle) Command ¶
func (cmd *Idle) Command() *imap.Command
func (*Idle) Parse ¶
type List ¶
List is a LIST command, as defined in RFC 3501 section 6.3.8. If Subscribed is set to true, LSUB will be used instead.
func (*List) Command ¶
func (cmd *List) Command() *imap.Command
func (*List) Parse ¶
type Login ¶
Login is a LOGIN command, as defined in RFC 3501 section 6.2.2.
func (*Login) Command ¶
func (cmd *Login) Command() *imap.Command
func (*Login) Parse ¶
type Logout ¶
type Logout struct{}
Logout is a LOGOUT command, as defined in RFC 3501 section 6.1.3.
func (*Logout) Command ¶
func (c *Logout) Command() *imap.Command
func (*Logout) Parse ¶
type Move ¶
type Move struct { SeqSet *imap.SeqSet Mailbox string }
A MOVE command. See RFC 6851 section 3.1.
func (*Move) Command ¶
func (cmd *Move) Command() *imap.Command
func (*Move) Parse ¶
type Noop ¶
type Noop struct{}
Noop is a NOOP command, as defined in RFC 3501 section 6.1.2.
func (*Noop) Command ¶
func (c *Noop) Command() *imap.Command
func (*Noop) Parse ¶
type Rename ¶
Rename is a RENAME command, as defined in RFC 3501 section 6.3.5.
func (*Rename) Command ¶
func (cmd *Rename) Command() *imap.Command
func (*Rename) Parse ¶
type Search ¶
type Search struct { Charset string Criteria *imap.SearchCriteria }
Search is a SEARCH command, as defined in RFC 3501 section 6.4.4.
func (*Search) Command ¶
func (*Search) Parse ¶
type Select ¶
Select is a SELECT command, as defined in RFC 3501 section 6.3.1. If ReadOnly is set to true, the EXAMINE command will be used instead.
func (*Select) Command ¶
func (cmd *Select) Command() *imap.Command
func (*Select) Parse ¶
type StartTLS ¶
type StartTLS struct{}
StartTLS is a STARTTLS command, as defined in RFC 3501 section 6.2.1.
func (*StartTLS) Command ¶
func (cmd *StartTLS) Command() *imap.Command
func (*StartTLS) Parse ¶
type Status ¶
type Status struct { Mailbox string Items []imap.StatusItem }
Status is a STATUS command, as defined in RFC 3501 section 6.3.10.
func (*Status) Command ¶
func (*Status) Parse ¶
type Store ¶
Store is a STORE command, as defined in RFC 3501 section 6.4.6.
func (*Store) Command ¶
func (*Store) Parse ¶
type Subscribe ¶
type Subscribe struct { Mailbox string }
Subscribe is a SUBSCRIBE command, as defined in RFC 3501 section 6.3.6.
func (*Subscribe) Command ¶
func (cmd *Subscribe) Command() *imap.Command
func (*Subscribe) Parse ¶
type Uid ¶
Uid is a UID command, as defined in RFC 3501 section 6.4.8. It wraps another command (e.g. wrapping a Fetch command will result in a UID FETCH).
func (*Uid) Command ¶
func (*Uid) Parse ¶
type Unselect ¶
type Unselect struct{}
An UNSELECT command. See RFC 3691 section 2.
func (*Unselect) Command ¶
func (cmd *Unselect) Command() *imap.Command
func (*Unselect) Parse ¶
type Unsubscribe ¶
type Unsubscribe struct { Mailbox string }
An UNSUBSCRIBE command. See RFC 3501 section 6.3.7
func (*Unsubscribe) Command ¶
func (cmd *Unsubscribe) Command() *imap.Command
func (*Unsubscribe) Parse ¶
func (cmd *Unsubscribe) Parse(fields []interface{}) error
Source Files ¶
append.go authenticate.go capability.go check.go close.go commands.go copy.go create.go delete.go enable.go expunge.go fetch.go idle.go list.go login.go logout.go move.go noop.go rename.go search.go select.go starttls.go status.go store.go subscribe.go uid.go unselect.go
- Version
- v1.2.13 (latest)
- Published
- Jan 10, 2024
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 2 days ago –
Tools for package owners.