[][src]Crate mail_test_account

A library for creating/storing/loading ethereal.mail accounts.

Disclaimer: This source code/library/crate is unrelated to the original ethereal.mail service, through it calls their api.

Structs

AccountAndServiceInfo

The full info needed to use the test account, including credentials and server info.

AccountInfo
ImapInfo

Info needed for connecting with a IMAP server which contains all mails "send" through the test account.

Pop3Info

Info needed for connecting with a POP3 server which contains all mails "send" through the test account.

SmtpInfo

Info needed for connecting with the test account's MSA using SMTP.

WebInfo

A a Website which allows accessing mails send through the test account.

Functions

create_new_ethereal_account

Crate a new ethereal.mail accounts returning it's account and service info.

load_account_info

Loads a AccountAndServiceInfo instance from a json file from the config dir.

store_account_info

Stores given AccountAndServiceInfo instance as json in the config dir.

test_account_info

Get the "test_account" tagged test account, if there is non create one and store it.

test_account_info_with_tag

Get the test account for the given tag, if there is non create one and store it.