package maildir
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=2a7288dbf971fbd31a4012d88b467dc7409f764b19bee810cd8fae52eb49014e
md5=77fb1a413686c0c06ac13a69de507bf7
doc/maildir/Maildir/index.html
Module Maildir
Library 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).