client

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailClient

type EmailClient struct {
	Vu       modules.VU
	Email    string
	Password string
	Url      string
	Port     int
	// contains filtered or unexported fields
}

func (*EmailClient) DeleteEmailsOlderThan added in v1.1.0

func (e *EmailClient) DeleteEmailsOlderThan(beforeTimestampUnix int64) (int, string)

DeleteEmailsOlderThan elimina tutte le email più vecchie della data specificata La data viene confrontata con InternalDate (data di arrivo sul server) Restituisce il numero di email eliminate e un eventuale errore come stringa beforeTimestampUnix è un timestamp Unix in secondi (int64) Usage da JavaScript: client.DeleteEmailsOlderThan(Math.floor(Date.now() / 1000) - 86400) // 24 ore fa

func (*EmailClient) KillCurrentWaitNewMailPromise added in v1.2.0

func (e *EmailClient) KillCurrentWaitNewMailPromise()

killCurrentWaitNewMailPromise interrompe la promise corrente di WaitNewEmail se attiva

func (*EmailClient) Login

func (e *EmailClient) Login() string

func (*EmailClient) Logout

func (e *EmailClient) Logout()

func (*EmailClient) Read

func (e *EmailClient) Read(headerObj map[string]interface{}) (map[string]interface{}, string)

func (*EmailClient) WaitNewEmail

func (e *EmailClient) WaitNewEmail(headerObj map[string]interface{}, timeoutMs int64) *sobek.Promise

Jump to

Keyboard shortcuts

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