code: function encodeAddressName(name) {
    if (!/^[\w ']*$/.test(name)) {
      if (/^[\x20-\x7e]*$/.test(name)) {
        return JSON.stringify(name);
      } else {
        return (0, _emailjsMimeCodec.mimeWordEncode)(name, 'Q', 52);
      }
    }
    return name;
  }
docs: If needed, encloses with quotes or mime encodes the name part of an e-mail address
  
  @param {String} name Name part of an address
  @returns {String} Mime word encoded or quoted string