Next: , Previous: Finding messages, Up: Messages   [Contents]


3.2 Message methods

Now that we’ve seen how to retrieve lists of message objects (<mu:message>), let’s see what we can do with such an object.

<mu:message> defines the following methods that all take a single <mu:message> object as a parameter. We won’t go into the exact meanings for all of these procedures here - for the details about various flags / properties, please refer to the mu-find man-page.

With these methods, we can query messages for their properties; for example:

scheme@(guile-user)> (define msg (car (mu:message-list "snow")))
scheme@(guile-user)> (mu:subject msg)
$1 = "Re: Running in the snow is beautiful"
scheme@(guile-user)> (mu:flags msg)
$2 = (mu:flag:replied mu:flag:seen)
scheme@(guile-user)> (strftime "%F" (localtime (mu:date msg)))
$3 = "2011-01-15"

There are a couple more methods:


Next: , Previous: Finding messages, Up: Messages   [Contents]