Re: $head->get issues possibly.

"Roderick A. Anderson" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.mail-box
Message-ID <[email protected]>
On Mon, 5 Apr 2004, Mark Overmeer wrote:

> > The 'hour' parameter to DateTime::new did not pass the 'is between 0 and 
> > 23' callback
> > 
> >    and I missed a line of my example/outline code.
> > 
> > >         my ($ss,$mm,$hh,$day,$month,$year,$zone) =
> >               strptime($head->get('date'));
> > 
> That's certainly not a MailBox buglett, because MailBox is not parsing
> your date here.  Could have been different if you had used $msg->date.

Right about the parsing but I'm using strptime as I thought the Mail-Box
docs said get('Date') would return a string that it strptime would handle.  
Wishful thinking that spammers would follow the rules.

Wish I wasn't trying so hard to protect the users mail (that may have
ended up in the spam folder).
  I thought I'd tried $msg->date and got even worst values returned.  
Looks like I'll have to do some more testing of the returned value before
thinking it is a good date string.


Thanks.

Rod
-- 
    "Open Source Software - You usually get more than you pay for..."
     "Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL"
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.