tb_setup_account tb_setup_account($proto, $account); Create an email account in Thunderbird. $proto can be pop or imap. $account can be internal_account_A or internal_account_B or internal_account_C or internal_account_D.

tb_send_message tb_send_message($account); Test sending an email using Thunderbird. $account can be internal_account_A or internal_account_B. Returns email subject.

tb_check_email tb_check_email($mail_search); Check for new emails. $mail_search may be an email subject to search for.