mailbox-list.h revision a10ed8c47534b4c6b6bf2711ccfe577e720a47b4
363N/A /* maildir_name must always be empty */ 363N/A /* alt directories not supported */ 363N/A /* no support for \noselect directories, only mailboxes */ 363N/A /* mail root directory isn't required */ 363N/A /* Automatically create mailbox directories when needed */ 363N/A /* Mailboxes are files, not directories. */ 363N/A /* Namespace already has a mailbox list, don't assign this 363N/A /* Internally used by lib-storage */ /* Ignore index file and ACLs (used by ACL plugin internally) */ /* When listing "foo/%" and "foo" is an existing mailbox (maybe \noselect), have LIST also return "foo/" in the replies. This is needed by IMAP, but messes up internal code. */ /* Don't list autocreated mailboxes (e.g. INBOX) unless they /* For mailbox_list_iter_init_namespaces(): Skip namespaces that /* For mailbox_list_iter_init_namespaces(): '*' in a pattern doesn't match beyond namespace boundary (e.g. "foo*" or "*o" doesn't match "foo." namespace's mailboxes, but "*.*" does). also '%' can't match namespace prefixes, if there exists a parent namespace whose children /* List only subscribed mailboxes */ /* Return MAILBOX_CHILD_* if mailbox's children match selection criteria, even if the mailbox itself wouldn't match. */ /* Return only mailboxes that have special use flags */ /* Don't return any flags unless it can be done without cost */ /* Return MAILBOX_SUBSCRIBED flag */ /* Return children flags */ /* Return IMAP special use flags */ /* Return directory's path (eg. ~/dbox/INBOX) */ /* Return control directory */ /* Return index directory ("" for in-memory) */ /* Return the private index directory (NULL if none) */ const char *
layout;
/* FIXME: shouldn't be here */ const char *
alt_dir;
/* FIXME: dbox-specific.. */ /* If non-empty, it means that mails exist in a maildir_name subdirectory. eg. if you have a directory containing directories: If mailbox_name is empty, you have mailboxes "mail", "mail/foo" and If mailbox_name is "Maildir", you have a non-selectable mailbox "mail" and a selectable mailbox "mail/foo". */ this setting contains either "" or "dir/". */ /* Encode "bad" characters in mailbox names as <escape_char><hex> */ /* Use UTF-8 mailbox names on filesystem instead of mUTF-7 */ /* The actual uid/gid of the mailbox */ /* mode and GID to use for newly created files/dirs. (gid_t)-1 is used if the default GID can be used. */ /* origin (e.g. path) where the file_create_gid was got from */ /* register all drivers */ /* Returns 0 if ok, -1 if driver was unknown. */ /* Returns the mode and GID that should be used when creating new files and directories to the specified mailbox. (gid_t)-1 is returned if it's not necessary to change the default gid. */ /* Like mailbox_list_get_permissions(), but for creating files/dirs to the mail root directory (or even the root dir itself). */ /* Create path's directory with proper permissions. */ /* Like mailbox_list_mkdir(), but create path's parent parent directory. Since most directories are created lazily, this function can be used to easily create them whenever file creation fails with ENOENT. */ /* mkdir() a root directory of given type with proper permissions. */ /* Returns TRUE if the name doesn't contain any invalid characters. The create name check can be more strict. */ /* Return full path for the given mailbox name. The name must be a valid existing mailbox name. For INDEX=MEMORY it returns "" as the path. */ /* Returns root directory path for given type. */ /* 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.". */ /* Returns a single pattern from given reference and pattern. */ /* Initialize new mailbox list request. Pattern may contain '%' and '*' wildcards as defined by RFC-3501. */ /* Like mailbox_list_iter_init(), but support multiple patterns. Patterns is a NULL-terminated list of strings. It must contain at least one pattern. */ /* List mailbox_list_iter_init_multiple(), but list mailboxes from all the /* Get next mailbox. Returns the mailbox name */ /* Deinitialize mailbox list request. Returns -1 if some error occurred while listing. */ /* List one mailbox. Returns 1 if info returned, 0 if mailbox doesn't exist, /* Returns 1 if mailbox has children, 0 if not, -1 if error. */ subscribing to already subscribed mailbox. Subscribing to unexisting mailboxes is optional. */ /* Create a non-selectable mailbox. Fail with MAIL_ERROR_NOTPOSSIBLE if only a selectable mailbox can be created. */ /* 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. */