emailprotocol

package
v0.3.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	ImapEmail    string
	ImapPassword string

	Email    string
	Password string
}

func (Email) Equals

func (e Email) Equals(e2 Email) bool

func (*Email) GetEmailsByCriteriaSince

func (e *Email) GetEmailsByCriteriaSince(criteria *imap.SearchCriteria, since time.Time) ([]string, error)

func (*Email) GetEmailsBySenderAndTime

func (e *Email) GetEmailsBySenderAndTime(sender string, since time.Time) ([]string, error)

getEmailsBySender connects to Gmail's IMAP server, authenticates, and retrieves emails by the specified sender.

func (Email) GetGroupConfig

func (e Email) GetGroupConfig() basicgroupsprotocol.GroupConfig

func (Email) ParseEntry

func (Email) ParseEntry(u string) (Email, error)

func (Email) SerializeEntry

func (e Email) SerializeEntry() string

func (*Email) WaitForEmail

func (e *Email) WaitForEmail(ctx context.Context, filter func(*mailstream.Mail) bool) (*mailstream.Mail, error)

type EmailStream

type EmailStream interface {
	Subscribe() <-chan *mailstream.Mail
}

type MailClient

type MailClient struct {
	*broadcast.Relay[*mailstream.Mail]
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL