Documentation
¶
Overview ¶
Package pop3 implements the backend.Provider interface using POP3 for reading email and SMTP for sending.
POP3 is inherently limited compared to IMAP/JMAP:
- Only supports a single "INBOX" folder
- No support for flags (mark as read is a no-op)
- No support for moving or archiving emails
- No support for push notifications (IDLE)
- Delete marks for deletion; executed on Quit()
Index ¶
- type Provider
- func (p *Provider) ArchiveEmail(_ context.Context, _ string, _ uint32) error
- func (p *Provider) ArchiveEmails(_ context.Context, _ string, _ []uint32) error
- func (p *Provider) Close() error
- func (p *Provider) DeleteEmail(_ context.Context, _ string, uid uint32) error
- func (p *Provider) DeleteEmails(ctx context.Context, folder string, uids []uint32) error
- func (p *Provider) FetchAttachment(_ context.Context, _ string, uid uint32, partID, _ string) ([]byte, error)
- func (p *Provider) FetchEmailBody(_ context.Context, _ string, uid uint32) (string, []backend.Attachment, error)
- func (p *Provider) FetchEmails(_ context.Context, _ string, limit, offset uint32) ([]backend.Email, error)
- func (p *Provider) FetchFolders(_ context.Context) ([]backend.Folder, error)
- func (p *Provider) MarkAsRead(_ context.Context, _ string, _ uint32) error
- func (p *Provider) MoveEmail(_ context.Context, _ uint32, _, _ string) error
- func (p *Provider) MoveEmails(_ context.Context, _ []uint32, _, _ 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 implements backend.Provider using POP3+SMTP.
func (*Provider) ArchiveEmail ¶
func (*Provider) ArchiveEmails ¶ added in v0.32.0
func (*Provider) DeleteEmail ¶
func (*Provider) DeleteEmails ¶ added in v0.32.0
func (*Provider) FetchAttachment ¶
func (*Provider) FetchEmailBody ¶
func (*Provider) FetchEmails ¶
func (*Provider) FetchFolders ¶
func (*Provider) MarkAsRead ¶
func (*Provider) MoveEmails ¶ added in v0.32.0
Click to show internal directories.
Click to hide internal directories.