Re: Setting/Changing header value
"Roderick A. Anderson" <[email protected]> Tue, 8 Jun 2004 18:14:40 -0700 (PDT)
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 9 Jun 2004, Mark Overmeer wrote:
> The MBOX folder format stores some state flags in the Status and
> X-Status fields. Other folder types use other ways to keep that info.
> In Mail::Box, these are generalized into 'labels'.
>
> $msg->label(seen => 1);
>
> See http://perl.overmeer.net/mailbox/html/jump.cgi?Mail::Message&794
Thanks Mark. Is the label method 'readable'/returns a value?
if ($msg->label(flagged)) {
print "You've been flagged\n";
} else {
&process();
$msg->label(flagged => 1);
}
Rod
--
"Open Source Software - You usually get more than you pay for..."
"Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL"