mailbox-list.h revision 697ff56bf3cdc9e7989ea2a70accf866b14b64d1
0N/A /* maildir_name must always be empty */ 1472N/A /* alt directories not supported */ 0N/A /* no support for \noselect directories, only mailboxes */ 0N/A /* mail root directory isn't required */ 1879N/A /* Automatically create mailbox directories when needed */ 0N/A /* Mailboxes are files, not directories. */ 0N/A /* Namespace already has a mailbox list, don't assign this 0N/A mailbox list to it. */ 0N/A /* There are no mail files, only index and/or control files. */ 0N/A to actually access these: */ 0N/A /* Internally used by lib-storage: */ 0N/A /* Return control directory */ 0N/A /* Return index directory ("" for in-memory) */ 0N/A /* Return the private index directory (NULL if none) */ 0N/A /* If non-empty, it means that mails exist in a maildir_name 0N/A subdirectory. eg. if you have a directory containing directories: 2846N/A If mailbox_name is empty, you have mailboxes "mail", "mail/foo" and 2846N/A If mailbox_name is "Maildir", you have a non-selectable mailbox 2846N/A this setting contains either "" or "dir/". */ 0N/A /* Encode "bad" characters in mailbox names as <escape_char><hex> */ 0N/A /* If mailbox name can't be changed reversibly to UTF-8 and back, 0N/A encode the problematic parts using <broken_char><hex> in the 0N/A user-visible UTF-8 name. The broken_char itself also has to be 0N/A encoded the same way. */ 0N/A /* Use UTF-8 mailbox names on filesystem instead of mUTF-7 */ 0N/A have been the default since the beginning, but for backwards 0N/A compatibility it had to be made an option. */ 0N/A (gid_t)-1 is used if the default GID can be used. */ 0N/A /* origin (e.g. path) where the file_create_gid was got from */ 0N/A/* register all drivers */ 0N/A/* Returns 0 if ok, -1 if driver was unknown. */ 0N/A/* Returns the mode and GID that should be used when creating new files and 0N/A directories to the specified mailbox. (gid_t)-1 is returned if it's not 0N/A necessary to change the default gid. */ 0N/A/* Like mailbox_list_get_permissions(), but for creating files/dirs to the 0N/A mail root directory (or even the root dir itself). */ 1879N/A/* mkdir() a root directory of given type with proper permissions. The path can 1879N/A be either the root itself or point to a directory under the root. */ /* Like mailbox_list_mkdir_root(), but don't log an error if it fails. */ /* Call mailbox_list_mkdir_root() for index, unless the index root is the same as mailbox root. Returns 1 if ok, 0 if there are no indexes, -1 if error. Calling this multiple times does the check only once. */ /* Returns TRUE if name is ok, FALSE if it can't be safely passed to mailbox_list_*() functions */ /* Get path to specified type of files in mailbox. Returns -1 if an error occurred (e.g. mailbox no longer exists), 0 if there are no files of this type (in-memory index, no alt dir, storage with no files), 1 if path was returned successfully. The path is set to NULL when returning -1/0. */ /* Get path to the root directory for files of specified type. Returns TRUE if path was returned, FALSE if there are no files of this type. */ /* Like mailbox_list_get_root_path(), but assume that the root directory exists (assert crash if not) */ /* Returns mailbox's change log, or NULL if it doesn't have one. */ /* Specify timestamp to use when writing mailbox changes to changelog. The same timestamp is used until stamp is set to (time_t)-1, after which /* Returns a prefix that temporary files should use without conflicting /* Returns prefix that's common to all get_temp_prefix() calls. Typically this returns either "temp." or ".temp.". */ subscribing to already subscribed mailbox. Subscribing to unexisting mailboxes is optional. */ /* Delete a non-selectable mailbox. Fail if the mailbox is selectable. */ /* Delete a symlinked mailbox. Fail if the mailbox isn't a symlink. */ /* Returns the error message of last occurred error. */ /* Create a fs based on the settings in the given mailbox_list. */ /* Return mailbox_list that was used to create the fs via mailbox_list_init_fs(). */