Mail::Exchange::Message::StickyNote - subclass of Mail::Exchange::Message that initializes StickyNote-specific fields
use Mail::Exchange::Message::StickyNote; $mail=Mail::Exchange::Message::StickyNote->new();
Mail::Exchange::Message::StickyNote is a utility class derived from Mail::Exchange::Message. When creating a new message object, it sets the Message Class to "IPM.StickyNote" to mark this message as a sticky note object.
#!/usr/bin/perl use Mail::Exchange::PidLidIDs; use Mail::Exchange::Message::StickyNote; my $note=Mail::Exchange::Message::StickyNote->new(); $note->setUnicode(1); $note->setBody("hello world"); $note->setColor('blue'); $note->set(PidLidNoteWidth, 600); $note->set(PidLidNoteHeight, 400); $note->set(PidLidNoteX, 100); $note->set(PidLidNoteY, 200); $note->save("mynote.msg");
$msg=Mail::Exchange::Message::StickyNote->new();
Create a new message object and initialize it to a sticky note.
The parse() method is overwritten to abort, because the message type will be read from the input file, so a plain Mail::Exchange::Message object should be used in this case.
The setColor method sets the PidLidNoteColor property. It understands color IDs as well as the color names defined in MS-OXONOTE 2.2.1.1, which are blue, green, pink, yellow, and white. Also, it sets the PidTagIconIndex property to color+0x300, as required by MS-OXONOTE 2.2.2.2.
color
To install Mail::Exchange::CRC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::Exchange::CRC
CPAN shell
perl -MCPAN -e shell install Mail::Exchange::CRC
For more information on module installation, please visit the detailed CPAN module installation guide.