Re: $head->get issues possibly.

Mark Overmeer <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.mail-box
Organization MARKOV Solutions
Message-ID <[email protected]>
[sorryh for the late reply]

* David A Golden ([email protected]) [040407 20:50]:
> A second thought:
> I'd like to suggest that shortcuts like $msg->date() be deprecated and 
> perhaps the various shortcuts reconsidered.  My rationale is that most 
> shortcuts such as "to" and "from" are returning cleaned, programmer-ready 
> objects (Mail::Address) rather than the raw headers themselves.  I think 
> that date() should either be the same (i.e. my suggestion that it return a 
> DateTime object) or not available at all.  The raw field can always be 
> retrieved with a header->get() and the "timestamp" call is the "better" 
> shortcut to use.

I do agree... although: is DateTime the best object for this?  There
are so many implementations for Date objects.  Anyone with a different
preference?
-- 
               MarkOv

------------------------------------------------------------------------
drs Mark A.C.J. Overmeer                                MARKOV Solutions
       [email protected]                          [email protected]
http://Mark.Overmeer.net                   http://solutions.overmeer.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.