[Tickets] New comment for ticket 171

bugs at bugs.horde.org bugs at bugs.horde.org
Fri May 14 02:58:07 PDT 2004


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

-Ticket 171
-Queue: IMP
-Added By: vilius at lnk.lt

-Summary:
multiple "invalid name" messages after autosaving address in turba

Comment by vilius at lnk.lt on Fri May 14 02:58:06 2004 (today):
Ok let me explain a little bit more.

If I specify recipient address like this "Vilius Sumskas <vilius at lnk.lt>"
Mail_RFC822::parseAddressList returns array of <b>object</b>:

Array (
   [0] => stdClass Object (
       [personal] => Vilius Sumskas
       [comment] => Array ( )
       [mailbox] => vilius
       [host] => lnk.lt
   )
) 

In this case line 885 in compose.php works as expected. $name =
trim($recipient->personal) returns valid name.


But if I specify recipient address with 8bit characters (like "Vilius
Šumskas <vilius at lnk.lt>"), parseAddressList return simple array:

Array
(
    [0] => Vilius Šumskas <vilius at lnk.lt>
)

and variable $name in compose.php becomes empty, though name IS valid. So
after calling contacts/add from registry we get ugly "invalid name."
messages, and address is not saved in turba.

As i mentioned before, it is too difficult for me to hack into
Mail/RFC822.php library. So i can't do a patch.

--


http://bugs.horde.org/details.php?id=171

-- 


More information about the bugs mailing list