Method code for $smtp.parse_host_setting()

[Turn off line numbering]
  1: arg value, action, @args;
  2: 
  3: if (action == 'del) {
  4:     if (!(value in hosts))
  5:         throw(~failed, "The host '" + value + "' is not set, and thus cannot be removed");
  6:     return value;
  7: } else {
  8:     (> $dns.ip(value) <);
  9:     return lowercase(value);
 10: }

// Created 13-Oct-1996 as a part of ColdCore, see: @help Credit

Tlon