Documentation
¶
Overview ¶
Package imap implements the backend.Provider interface by delegating to the existing fetcher and sender packages.
Index ¶
- type Provider
- func (p *Provider) ArchiveEmail(_ context.Context, folder string, uid uint32) error
- func (p *Provider) Close() error
- func (p *Provider) DeleteEmail(_ context.Context, folder string, uid uint32) error
- func (p *Provider) FetchAttachment(_ context.Context, folder string, uid uint32, partID, encoding string) ([]byte, error)
- func (p *Provider) FetchEmailBody(_ context.Context, folder string, uid uint32) (string, []backend.Attachment, error)
- func (p *Provider) FetchEmails(_ context.Context, folder string, limit, offset uint32) ([]backend.Email, error)
- func (p *Provider) FetchFolders(_ context.Context) ([]backend.Folder, error)
- func (p *Provider) MarkAsRead(_ context.Context, folder string, uid uint32) error
- func (p *Provider) MoveEmail(_ context.Context, uid uint32, srcFolder, dstFolder string) error
- func (p *Provider) SendEmail(_ context.Context, msg *backend.OutgoingEmail) error
- func (p *Provider) Watch(_ context.Context, _ string) (<-chan backend.NotifyEvent, func(), error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider wraps the existing fetcher/sender packages behind the backend.Provider interface.
func (*Provider) ArchiveEmail ¶
func (*Provider) DeleteEmail ¶
func (*Provider) FetchAttachment ¶
func (*Provider) FetchEmailBody ¶
func (*Provider) FetchEmails ¶
func (*Provider) FetchFolders ¶
func (*Provider) MarkAsRead ¶
Click to show internal directories.
Click to hide internal directories.