Page
Library
Module
Module type
Parameter
Class
Class type
Source
MaildirLibrary to access mailbox folders in Maildir format
val create : ?init:bool -> string -> tcreate init path returns an object that can be used to access a Maildir-directory at path. If ?init is true, then the directory path and its subdirectories "tmp", "cur", and "new" will be created if they do not exist. The default is false.
val update : t -> unitupdate md updates the cached information to reflect the actual contents of the Maildir folder. This is only needed if more than one program is accessing the folder.
add md data adds the message with contents data. Returns the uid of the newly inserted message.
get md uid retrieves the filename of the message with uid uid.
Raises Not_found if no such message is found.
remove md uid removes the message with uid uid.
Raises Not_found if no such message is found.
set_flags md uid flags changes sets the flags of the message with uid uid to flags.
Raises Not_found if no such message is found.
flags md uid returns the list of flags of message with uid uid.
Raises Not_found if no such message is found.
iter f md computes f msg1; f msg2; ...; f msgN where msg1, ..., msgN are the messages in md (in some unspecified order).