[Turn on line numbering]arg type; var email, r, host; if (type(type) != 'string) type = tostr(type); // format aliases here, so .format_email_address() doesn't confuse them if ((r = (| .lookup_alias(type) |))) { if ((host = (| (.get_hosts_setting())[1] |))) return type + "@" + host; return type; } if ((r = (| .parse_recipient(type) |))) return .format_email_address(r, 'notfull); r = $mail_admin; if ((host = (| (.get_hosts_setting())[1] |))) return "admin@" + host; return "admin";
// Created 13-Oct-1996 as a part of ColdCore, see: @help Credit