my $fetch = Mail::Box::IMAP4::Fetch->new($msg); print $fetch->fetchBody(1); # for FETCH BODYSTRUCTURE print $fetch->fetchBody; # for FETCH BODY print $fetch->fetchEnvelope; # for FETCH ENVELOPE print $fetch->fetchSize;
Create a new object hierarchy, which contains information to capture the most important details about the message. The object can be used to speed-up IMAP-server implementations, as manual Mail::Box::Netzwert.
The object used here is a simplified representation of a Mail::Box::Message object. It does not maintain headers and does not refer to the folder. It only works with messages stored in a file. Therefore, this object can be frozen by manual Storable if you want to.
See