Re: Setting/Changing header value
Mark Overmeer <[email protected]> Wed, 9 Jun 2004 02:10:59 +0200
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Organization | MARKOV Solutions |
| Message-ID | <[email protected]> |
* Roderick A. Anderson ([email protected]) [040609 01:56]: > Didn't see it in the docs and rather than take a chance of breaking my > running script I will ask here first. > > Can the set method be used to change the Status of a (mbox format) > message? > > ### I'd like to do this > $msg->set('Status') = 'R'; 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 -- MarkOv ------------------------------------------------------------------------ drs Mark A.C.J. Overmeer MARKOV Solutions [email protected] [email protected] http://Mark.Overmeer.net http://solutions.overmeer.net