Documentation
¶
Index ¶
- type Email
- func (e Email) Equals(e2 Email) bool
- func (e *Email) GetEmailsByCriteriaSince(criteria *imap.SearchCriteria, since time.Time) ([]string, error)
- func (e *Email) GetEmailsBySenderAndTime(sender string, since time.Time) ([]string, error)
- func (e Email) GetGroupConfig() basicgroupsprotocol.GroupConfig
- func (Email) ParseEntry(u string) (Email, error)
- func (e Email) SerializeEntry() string
- func (e *Email) WaitForEmail(ctx context.Context, filter func(*mailstream.Mail) bool) (*mailstream.Mail, error)
- type EmailStream
- type MailClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Email ¶
func (*Email) GetEmailsByCriteriaSince ¶
func (*Email) GetEmailsBySenderAndTime ¶
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) SerializeEntry ¶
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 }
Click to show internal directories.
Click to hide internal directories.