This is guile-procedures.txt, produced by makeinfo version 4.13 from guile-procedures.texi. mu-address-get-personal -- Scheme procedure: mu-address-get-personal address num Return personal part of the NUMth email address from ADDRESS. mu-address-get-comments -- Scheme procedure: mu-address-get-comments address num Return comment part of the NUMth email address from ADDRESS. mu-address-get-email -- Scheme procedure: mu-address-get-email address num Return email part of the NUMth email address from ADDRESS. mu-address-get-domain -- Scheme procedure: mu-address-get-domain address num Return domain part of the NUMth email address from ADDRESS. mu-address-get-local -- Scheme procedure: mu-address-get-local address num Return local part of the NUMth email address from ADDRESS. mu-address-get-count -- Scheme procedure: mu-address-get-count address Return number of parts in email address ADDRESS. mu-username->email -- Scheme procedure: mu-username->email name Deduce user's email address from his username. If NAME is omitted, current username is assumed mu-body-read-line -- Scheme procedure: mu-body-read-line body Read next line from the BODY. mu-body-write -- Scheme procedure: mu-body-write body text Append TEXT to message BODY. mu-mail-directory -- Scheme procedure: mu-mail-directory url Do not use this function. Use mu-user-mailbox-url instead. mu-user-mailbox-url -- Scheme procedure: mu-user-mailbox-url user mu-folder-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. mu-mailbox-open -- 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. mu-mailbox-close -- Scheme procedure: mu-mailbox-close mbox Closes mailbox MBOX. mu-mailbox-get-url -- Scheme procedure: mu-mailbox-get-url mbox Returns url of the mailbox MBOX. mu-mailbox-get-port -- 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. mu-mailbox-get-message -- Scheme procedure: mu-mailbox-get-message mbox msgno Retrieve from message #MSGNO from the mailbox MBOX. mu-mailbox-messages-count -- Scheme procedure: mu-mailbox-messages-count mbox Returns number of messages in the mailbox MBOX. mu-mailbox-expunge -- Scheme procedure: mu-mailbox-expunge mbox Expunges deleted messages from the mailbox MBOX. mu-mailbox-append-message -- Scheme procedure: mu-mailbox-append-message mbox mesg Appends message MESG to the mailbox MBOX. mu-message-create -- Scheme procedure: mu-message-create Creates an empty message. mu-message-copy -- Scheme procedure: mu-message-copy mesg Creates the copy of the message MESG. mu-message-destroy -- Scheme procedure: mu-message-destroy mesg Destroys the message MESG. mu-message-set-header -- Scheme procedure: mu-message-set-header mesg header value replace Sets new VALUE to the header HEADER of the message MESG. If HEADER is already present in the message its value is replaced with the suplied one iff the optional REPLACE is #t. Otherwise, a new header is created and appended. mu-message-get-size -- Scheme procedure: mu-message-get-size mesg Returns the size of the message MESG . mu-message-get-lines -- Scheme procedure: mu-message-get-lines mesg Returns number of lines in the given message. mu-message-get-sender -- Scheme procedure: mu-message-get-sender mesg Returns email address of the sender of the message MESG. mu-message-get-header -- Scheme procedure: mu-message-get-header mesg header Returns value of the header HEADER from the message MESG. mu-message-get-header-fields -- Scheme procedure: mu-message-get-header-fields mesg headers Returns the list of headers in the message MESG. Optional argument HEADERS gives a list of header names to restrict return value to. mu-message-set-header-fields -- Scheme procedure: mu-message-set-header-fields mesg list replace Set the headers in the message MESG from LIST LIST is a list of conses (cons HEADER VALUE). The function sets these headers in the message MESG. Optional parameter REPLACE specifies whether the new header values should replace the headers already present in the message. mu-message-delete -- Scheme procedure: mu-message-delete mesg flag Mark the message MESG as deleted. Optional argument FLAG allows to toggle deletion mark. The message is deleted if it is `#t' and undeleted if it is `#f' mu-message-get-flag -- Scheme procedure: mu-message-get-flag mesg flag Return value of the attribute FLAG of the message MESG. mu-message-set-flag -- Scheme procedure: mu-message-set-flag mesg flag value Set the attribute FLAG of the message MESG. If optional VALUE is #f, the attribute is unset. mu-message-get-user-flag -- Scheme procedure: mu-message-get-user-flag mesg flag Return the value of the user attribute FLAG from the message MESG. mu-message-set-user-flag -- Scheme procedure: mu-message-set-user-flag mesg flag value Set the given user attribute FLAG in the message MESG. If optional argumen VALUE is `#f', the attribute is unset. mu-message-get-port -- Scheme procedure: mu-message-get-port mesg mode full 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 argument FULL is 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 -- Scheme procedure: mu-message-get-body mesg Returns the message body for the message MESG. mu-message-multipart? -- Scheme procedure: mu-message-multipart? mesg Returns `#t' if MESG is a multipart MIME message. mu-message-get-num-parts -- Scheme procedure: mu-message-get-num-parts mesg Returns number of parts in a multipart MIME message. Returns `#f' if the argument is not a multipart message. mu-message-get-part -- Scheme procedure: mu-message-get-part mesg part Returns part #PART from a multipart MIME message MESG. mu-message-send -- Scheme procedure: mu-message-send mesg mailer from to Sends the message MESG. Optional MAILER overrides default mailer settings in mu-mailer. Optional FROM and TO give sender and recever addresses. mu-message-get-uid -- Scheme procedure: mu-message-get-uid mesg Returns uid of the message MESG mu-mime-create -- Scheme procedure: mu-mime-create flags mesg Creates a new MIME object. Both arguments are optional. FLAGS specifies the type of the object to create (`0' is a reasonable value). MESG gives the message to create the MIME object from. mu-mime-multipart? -- Scheme procedure: mu-mime-multipart? mime Returns `#t' if MIME is a multipart object. mu-mime-get-num-parts -- Scheme procedure: mu-mime-get-num-parts mime Returns number of parts in the MIME object MIME. mu-mime-get-part -- Scheme procedure: mu-mime-get-part mime num Returns NUMth part from the MIME object MIME. mu-mime-add-part -- Scheme procedure: mu-mime-add-part mime mesg Adds MESG to the MIME object MIME. mu-mime-get-message -- Scheme procedure: mu-mime-get-message mime Converts MIME object MIME to a message. mu-openlog -- Scheme procedure: mu-openlog ident option facility Opens a connection to the system logger for Guile program. IDENT, OPTION and FACILITY have the same meaning as in openlog(3) mu-logger -- Scheme procedure: mu-logger prio text Distributes TEXT via syslogd priority PRIO. mu-closelog -- Scheme procedure: mu-closelog Closes the channel to the system logger opened by `mu-openlog'. mu-register-format -- Scheme procedure: mu-register-format rest Registers desired mailutils formats. Any number of arguments can be given. Each argument must be one of the following strings: Argument Meaning -------------------------------------------------------------- `mbox' Regular UNIX mbox format `mh' MH mailbox format `maildir' Maildir mailbox format `pop' POP mailbox format `imap' IMAP mailbox format `sendmail' sendmail mailer format `smtp' SMTP mailer format If called without arguments, the function registers all available formats mu-strerror -- Scheme procedure: mu-strerror err Return the error message corresponding to ERR, which must be an integer value. mu-getpwuid -- Scheme procedure: mu-getpwuid user Look up an entry in the user database. USER can be an integer, or a string, giving the behaviour of `mu_get_auth_by_uid' or `mu_get_auth_by_name' respectively. Returns a vector with fields corresponding to those of the `mu_auth_data' entry in question. If no matching entry was found, returns `#f'.