[Turn off line numbering]1: arg type; 2: var email, r, host; 3: 4: if (type(type) != 'string) 5: type = tostr(type); 6: 7: // format aliases here, so .format_email_address() doesn't confuse them 8: if ((r = (| .lookup_alias(type) |))) { 9: if ((host = (| (.get_hosts_setting())[1] |))) 10: return type + "@" + host; 11: return type; 12: } 13: if ((r = (| .parse_recipient(type) |))) 14: return .format_email_address(r, 'notfull); 15: r = $mail_admin; 16: if ((host = (| (.get_hosts_setting())[1] |))) 17: return "admin@" + host; 18: return "admin";
// Created 13-Oct-1996 as a part of ColdCore, see: @help Credit