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 (*LinkClicker) FindLinks ¶ added in v1.37.1
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.
Click to show internal directories.
Click to hide internal directories.