Node:Message Functions, Next:, Previous:Mailbox Functions, Up:libmu_scm



Message Functions

mu-message-copy MESG Scheme Function
Creates the copy of the given message.

mu-message-set-header MESG HEADER VALUE REPLACE Scheme Function
Sets new VALUE to the header HEADER of the message MESG. If the HEADER is already present in the message its value is replaced with the supplied one if the optional REPLACE is #t. Otherwise new header is created and appended.

mu-message-get-size MESG Scheme Function
Returns the size of the given message.

mu-message-get-lines MESG Scheme Function
Returns number of lines in the given message.

mu-message-get-sender MESG Scheme Function
Returns the sender email address for the message MESG.

mu-message-get-header MESG HEADER Scheme Function
Returns the header value of the HEADER in the MESG.

mu-message-get-header-fields MESG HEADERS Scheme Function
Returns the list of headers in the MESG. If optional HEADERS is specified it should be a list of header names to restrict return value to.

mu-message-set-header-fields MESG LIST REPLACE Scheme Function
Set the headers in the message MESG from LIST LIST is a list of (cons HEADER VALUE) Optional parameter REPLACE specifies whether the new header values should replace the headers already present in the message.

mu-message-delete MESG FLAG Scheme Function
Mark given message as deleted. Optional FLAG allows to toggle deleted mark The message is deleted if it is #t and undeleted if it is #f

mu-message-get-flag MESG FLAG Scheme Function
Return value of the attribute FLAG.

mu-message-set-flag MESG FLAG VALUE Scheme Function
Set the given attribute of the message. If optional VALUE is #f, the attribute is unset.

mu-message-get-user-flag MESG FLAG Scheme Function
Returns value of the user attribute FLAG.

mu-message-set-user-flag MESG FLAG VALUE Scheme Function
Set the given user attribute of the message. If optional VALUE is #f, the attribute is unset.

mu-message-get-port MESG MODE FULL Scheme Function
Returns a port associated with the given MESG. MODE is a string defining operation mode of the stream. It may contain any of the two characters: r for reading, w for writing. If optional FULL argument specified, it should be a boolean value. If it is #t then the returned port will allow access to any part of the message (including headers). If it is #f then the port accesses only the message body (the default).

mu-message-get-body MESG Scheme Function
Returns the message body for the message MESG.

mu-message-send MESG MAILER Scheme Function
Sends the message MESG. Optional MAILER overrides default mailer settings in mu-mailer.