Next: , Previous: Address Functions, Up: libmu_scm


3.3.2 Mailbox Functions

— Scheme procedure: mu-mail-directory url

If url is given, sets it as a name of the user's mail directory. Returns the current value of the mail directory.

— Scheme procedure: mu-folder-directory url

If url is given, sets it as a name of the user's folder directory. Returns the current value of the folder directory.

— Scheme procedure: mu-mailbox-open url mode

Opens the mailbox specified by url. mode is a string, consisting of the characters described below, giving the access mode for the mailbox

mode Meaning
r Open for reading.
w Open for writing.
a Open for appending to the end of the mailbox.
c Create the mailbox if it does not exist.

— Scheme procedure: mu-mailbox-close mbox

Closes mailbox mbox.

— Scheme procedure: mu-mailbox-get-url mbox

Returns url of the mailbox mbox.

— Scheme procedure: mu-mailbox-get-port mbox mode

Returns a port associated with the contents of the mbox. mode is a string defining operation mode of the stream. It may contain any of the two characters: ‘r’ for reading, ‘w’ for writing.

— Scheme procedure: mu-mailbox-get-message mbox msgno

Retrieve from message #msgno from the mailbox mbox.

— Scheme procedure: mu-mailbox-messages-count mbox

Returns number of messages in the mailbox mbox.

— Scheme procedure: mu-mailbox-expunge mbox

Expunges deleted messages from the mailbox mbox.

— Scheme procedure: mu-mailbox-append-message mbox mesg

Appends message mesg to the mailbox mbox.