Message entities
Each message has an associated variable named msgInfo_$message. When the
message is deleted this variable is unset.
- $message headers
-
Returns a list which contains all header lines from the message.
Each element of the list is a list of two elements, the first is
the header name and the second is the value.
- $message body
-
Returns the name of the bodypart entity contained in this message
- $message rawText
-
Returns the complete message body as text.
- $message get field...
-
Returns a list of address entities found in the specified fields.
The following are the valid fields: return_path, from, sender,
reply_to, to, cc and bcc.
- $message reply to
-
Creates a new message handler which is fit to use for RatSend which
is a reply to this message. The to field is either sender or all and
denotes to whom the reply should go. There will be a member named
data in the handler array which contains the body text of the reply.
The new handler is returned.
- $message copy vfolder_def
-
Inserts a copy of the message in the vfolder defined by vfolder_def.
- $message list format
-
Returns information about the message. This command works like
the folder list command but operates on only one message. See the
documentation on folder list for description of the format argument.