simulate

package
v1.56.0-rc Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkClicker

type LinkClicker struct {
	// contains filtered or unexported fields
}

LinkClicker is mailservice.Sender that click all links from html msg parts.

architecture: Service

func NewDefaultLinkClicker added in v1.37.1

func NewDefaultLinkClicker(log *zap.Logger) *LinkClicker

NewDefaultLinkClicker returns a LinkClicker with the default marker attribute.

func (clicker *LinkClicker) FindLinks(body string) (links []string)

FindLinks returns a list of all links belonging to properly attributed anchors in the HTML body.

func (*LinkClicker) FromAddress

func (clicker *LinkClicker) FromAddress() post.Address

FromAddress return empty mail address.

func (*LinkClicker) SendEmail

func (clicker *LinkClicker) SendEmail(ctx context.Context, msg *post.Message) (err error)

SendEmail click all links belonging to properly attributed anchors from email html parts.

Jump to

Keyboard shortcuts

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