acs_mail_lite::address_domain (private)

 acs_mail_lite::address_domain

Defined in packages/acs-mail-lite/tcl/acs-mail-lite-procs.tcl

Returns:
domain address to which bounces are directed to. If empty, uses domain from FixedSenderEmail parameter, otherwise the hostname in config.tcl is used.

Partial Call Graph (max 5 caller/called nodes):
%3 acs_mail_lite::bounce_address acs_mail_lite::bounce_address (private) acs_mail_lite::address_domain acs_mail_lite::address_domain acs_mail_lite::bounce_address->acs_mail_lite::address_domain acs_mail_lite::check_bounces acs_mail_lite::check_bounces (private) acs_mail_lite::check_bounces->acs_mail_lite::address_domain acs_mail_lite::generate_message_id acs_mail_lite::generate_message_id (private) acs_mail_lite::generate_message_id->acs_mail_lite::address_domain acs_mail_lite::unique_id_create acs_mail_lite::unique_id_create (private) acs_mail_lite::unique_id_create->acs_mail_lite::address_domain acs_mail_lite::unique_id_parse acs_mail_lite::unique_id_parse (private) acs_mail_lite::unique_id_parse->acs_mail_lite::address_domain parameter::get_from_package_key parameter::get_from_package_key (public) acs_mail_lite::address_domain->parameter::get_from_package_key

Testcases:
No testcase defined.
Source code:
        set domain [parameter::get_from_package_key  -package_key "acs-mail-lite"  -parameter "BounceDomain"]
        if { $domain eq "" } {
            # Assume a FixedSenderEmail domain, if it exists.
            set email [parameter::get_from_package_key  -package_key "acs-mail-lite"  -parameter "FixedSenderEmail"]
            if { $email ne "" } {
                set domain [string range $email [string last "@" $email]+1 end]
            } else {
                #
                # If there is no domain configured, use the configured
                # hostname as domain name
                #
                foreach driver [lmap d [ns_driver info] {dict get $d module}] {
                    set section [ns_driversection -driver $driver]
                    set configured_hostname [ns_config $section hostname]
                    if {$configured_hostname ne ""} {
                        set domain $configured_hostname
                        break
                    }
                }
            }
        }
        return $domain
Generic XQL file:
packages/acs-mail-lite/tcl/acs-mail-lite-procs.xql

PostgreSQL XQL file:
packages/acs-mail-lite/tcl/acs-mail-lite-procs-postgresql.xql

Oracle XQL file:
packages/acs-mail-lite/tcl/acs-mail-lite-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: