announcements

package
v0.0.0-...-27d4a38 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllowedDomains []string

Functions

func Listen

func Listen(ctx context.Context, im *imap.Dialer, announcements chan<- Announcement, period int) error

func SelectFolder

func SelectFolder(im *imap.Dialer, folder string) (err error)

SelectFolder selects a folder

This function replaces the SelectFolder function defined on *imap.Dialer, to use the SELECT command instead of the EXTRACT command.

Types

type Announcement

type Announcement struct {
	Subject  string
	Contents []string
}

Jump to

Keyboard shortcuts

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