Location: PHPKode > scripts > MIME E-mail message parser > mime-e-mail-message-parser/test/expect/parse_addresses.txt
Parsed address: hide@address.com
array(1) {
  [0]=>
  array(1) {
    ["address"]=>
    string(13) "hide@address.com"
  }
}
Parsed address: "quoted test"@test.com
array(1) {
  [0]=>
  array(1) {
    ["address"]=>
    string(20) "quoted hide@address.com"
  }
}
Parsed address: test name <hide@address.com>
array(1) {
  [0]=>
  array(2) {
    ["address"]=>
    string(13) "hide@address.com"
    ["name"]=>
    string(9) "test name"
  }
}
Parsed address: test.name <hide@address.com>
array(1) {
  [0]=>
  array(2) {
    ["address"]=>
    string(13) "hide@address.com"
    ["name"]=>
    string(9) "test.name"
  }
}
Parsed address: "hide@address.com" <hide@address.com>
array(1) {
  [0]=>
  array(2) {
    ["address"]=>
    string(13) "hide@address.com"
    ["name"]=>
    string(9) "hide@address.com"
  }
}
Parsed address: hide@address.com <hide@address.com>
array(1) {
  [0]=>
  array(2) {
    ["address"]=>
    string(13) "hide@address.com"
    ["name"]=>
    string(9) "hide@address.com"
  }
}
Warning: it was specified an unquoted address as name at position 0
Parsed address: "test\"name" <hide@address.com>
array(1) {
  [0]=>
  array(2) {
    ["address"]=>
    string(13) "hide@address.com"
    ["name"]=>
    string(9) "test"name"
  }
}
Parsed address: hide@address.com (test name)
array(1) {
  [0]=>
  array(1) {
    ["address"]=>
    string(13) "hide@address.com"
  }
}
Parsed address: hide@address.com, test name <hide@address.com>
array(2) {
  [0]=>
  array(1) {
    ["address"]=>
    string(13) "hide@address.com"
  }
  [1]=>
  array(2) {
    ["address"]=>
    string(13) "hide@address.com"
    ["name"]=>
    string(9) "test name"
  }
}
Parsed address: Isto é um teste <hide@address.com>
array(1) {
  [0]=>
  array(2) {
    ["address"]=>
    string(13) "hide@address.com"
    ["name"]=>
    string(15) "Isto é um teste"
  }
}
Warning: it was used an unencoded 8 bit character at position 5
Parsed address: Isto =?iso-8859-1?q?=E9_um_teste?= <hide@address.com>
array(1) {
  [0]=>
  array(3) {
    ["address"]=>
    string(13) "hide@address.com"
    ["name"]=>
    string(15) "Isto é um teste"
    ["encoding"]=>
    string(10) "iso-8859-1"
  }
}
Parsed address: "Isto é um teste" <hide@address.com>
array(1) {
  [0]=>
  array(2) {
    ["address"]=>
    string(13) "hide@address.com"
    ["name"]=>
    string(15) "Isto é um teste"
  }
}
Warning: it was used an unencoded 8 bit character at position 6
Parsed address: undisclosed-recipients:;
array(1) {
  [0]=>
  array(2) {
    ["name"]=>
    string(22) "undisclosed-recipients"
    ["group"]=>
    array(0) {
    }
  }
}
Parsed address: undisclosed-recipients:; (some comments)
array(1) {
  [0]=>
  array(2) {
    ["name"]=>
    string(22) "undisclosed-recipients"
    ["group"]=>
    array(0) {
    }
  }
}
Warning: it were used invalid comments after a group of addresses at position 24
Parsed address: mailing-list: hide@address.com, test name <hide@address.com>;, another test <hide@address.com>
array(2) {
  [0]=>
  array(2) {
    ["name"]=>
    string(12) "mailing-list"
    ["group"]=>
    array(2) {
      [0]=>
      array(1) {
        ["address"]=>
        string(13) "hide@address.com"
      }
      [1]=>
      array(2) {
        ["address"]=>
        string(13) "hide@address.com"
        ["name"]=>
        string(9) "test name"
      }
    }
  }
  [1]=>
  array(2) {
    ["address"]=>
    string(21) "hide@address.com"
    ["name"]=>
    string(12) "another test"
  }
}
Return current item: MIME E-mail message parser