simulate

package
v1.42.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: AGPL-3.0 Imports: 8 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 {
	// MarkerAttribute specifies the attribute every anchor element must have in order to be clicked.
	// This prevents the link clicker from clicking links that it should not (such as the password reset cancellation link).
	// Leaving this field empty will make it click every link.
	MarkerAttribute string
}

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

architecture: Service

func NewDefaultLinkClicker added in v1.37.1

func NewDefaultLinkClicker() *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