Next: Attachment example, Up: Attachments and other parts [Contents]
The module defines the <mu-part> class, and adds two methods to
<mu:message> objects:
(mu:parts msg) - returns a list <mu-part> objects, one for
each MIME-parts in the message.
(mu:attachments msg) - like parts, but only list those MIME-parts
that look like proper attachments.
A <mu:part> object exposes a few methods to get information about the
part:
(mu:name <part>) - returns the file name of the mime-part, or #f if
there is none.
(mu:mime-type <part>) - returns the mime-type of the mime-part, or #f
if there is none.
(mu:size <part>) - returns the size in bytes of the mime-part
Then, we may want to save the part to a file; this can be done using either:
(mu:save part <part>) - save a part to a temporary file, return the file
name7
(mu:save-as <part> <path>) - save part to file at path