waft.utilities.waft_mail_actions module¶
- class waft.utilities.waft_mail_actions.WaftMailBox(randomized_email: str | None = None)¶
Bases:
object
Class to interact with WAFT cloudflare org for the purposes of retrieving link to complete WARP client registration
- email_address = 'waft@waft.clienttest.cfdata.org'¶
- get_registration_link() str ¶
Check for registration link associated with current randomized email address in KV store
- property randomized_email: str¶
Randomized email to avoid ratelimiting from WARP API and specificity per session
- wait_for_registration_email(timeout: int = 60) str ¶
Will wait for a new email to arrive with a registration link addressed to either the base address or if randomized_address is set to True then the randomized address of this instance must be in the to address list
- Parameters:
timeout – Max number of seconds to wait for a registration email to arrive