Re: Mail::Message::Field::Addresses

Mark Overmeer <[email protected]> Mon, 20 Sep 2004 10:34:38 +0200
Newsgroups gmane.comp.lang.perl.modules.mail-box
Organization MARKOV Solutions
Message-ID <[email protected]>
* Mitar ([email protected]) [040914 23:02]:
> Why Mail::Message->from() does not return Mail::Message::Field::Addresses
> but Mail::Address list? I would really like that ...->phrase() returns unicode
> string (when it is needed) like Mail::Message::Field::Address does which I can
> get from Mail::Message::Field::Addresses easier than from Mail::Address
> (I know for coerce from Mail::Address to Mail::Message::Field::Address but
> I would like that I do not have to convert anything).
> 
> Or Mail::Address does all that too?

Mail::Address is only doing half-work... it even doesn't understand
address groups.  [happily, that is hardly ever used by anyone].

The reason for Mail::Message->from  (and friends) to return Mail::Address
objects is that Mail::Message::Field::Address is rather new.  It will not
be easy to sneak the change to the new objects in without breaking the
interface...  Although it needs to be done... probably have to overrule
isa() to start with.
-- 
               MarkOv

------------------------------------------------------------------------
drs Mark A.C.J. Overmeer                                MARKOV Solutions
       [email protected]                          [email protected]
http://Mark.Overmeer.net                   http://solutions.overmeer.net