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:
> my $from = $head->get('From') || ''; # set default
This works nicely. I was thinking of doing it this way before I let the
error messages side-track me into thinking it was a MailBox issue.
Reference the $msg->date method mentioned in another message. The docs
don't say what the format is of the returned value. Well it does say as a
string. :-)
While looking around I also noticed the $msg->timestamp method. What
is the format of the returned value?
Of course I'm slowly remembering why I used the head object instead of
the message object. Since I'm parsing SPAM folders I didn't want to read
the whole thing into memory just to get the From and Date.
I am pulling size information -- for the user -- and setting proper
dates etc. so the messages can be expunged after so many days. Does the
require having the whole message in memory?
Rod
--
"Open Source Software - You usually get more than you pay for..."
"Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL"