CamelFolder: Camel Reference Manual

## CamelFolder CamelFolder |

## Functions

GQuark | camel_folder_error_quark ()
void | camel_folder_set_lock_async ()
struct _CamelStore * | camel_folder_get_parent_store ()
CamelFolderSummary * | camel_folder_get_folder_summary ()
void | camel_folder_take_folder_summary ()
const gchar * | camel_folder_get_full_name ()
gchar * | camel_folder_dup_full_name ()
void | camel_folder_set_full_name ()
const gchar * | camel_folder_get_display_name ()
gchar * | camel_folder_dup_display_name ()
void | camel_folder_set_display_name ()
const gchar * | camel_folder_get_full_display_name ()
const gchar * | camel_folder_get_description ()
gchar * | camel_folder_dup_description ()
void | camel_folder_set_description ()
guint32 | camel_folder_get_flags ()
void | camel_folder_set_flags ()
CamelThreeState | camel_folder_get_mark_seen ()
void | camel_folder_set_mark_seen ()
gint | camel_folder_get_mark_seen_timeout ()
void | camel_folder_set_mark_seen_timeout ()
guint32 | camel_folder_get_permanent_flags ()
guint32 | camel_folder_get_message_flags ()
gboolean | camel_folder_set_message_flags ()
gboolean | camel_folder_has_summary_capability ()
gint | camel_folder_get_message_count ()
#define | camel_folder_delete_message()
GPtrArray * | camel_folder_dup_uids ()
GPtrArray * | camel_folder_dup_uncached_uids ()
gint | camel_folder_cmp_uids ()
void | camel_folder_sort_uids ()
gboolean | camel_folder_search_sync ()
CamelMessageInfo * | camel_folder_get_message_info ()
void | camel_folder_delete ()
void | camel_folder_rename ()
void | camel_folder_changed ()
void | camel_folder_freeze ()
void | camel_folder_thaw ()
gboolean | camel_folder_is_frozen ()
gint | camel_folder_get_frozen_count ()
CamelFolderQuotaInfo * | camel_folder_quota_info_new ()
CamelFolderQuotaInfo * | camel_folder_quota_info_clone ()
void | camel_folder_quota_info_free ()
gchar * | camel_folder_get_filename ()
void | camel_folder_lock ()
void | camel_folder_unlock ()
gboolean | camel_folder_append_message_sync ()
void | camel_folder_append_message ()
gboolean | camel_folder_append_message_finish ()
gboolean | camel_folder_expunge_sync ()
void | camel_folder_expunge ()
gboolean | camel_folder_expunge_finish ()
CamelMimeMessage * | camel_folder_get_message_sync ()
void | camel_folder_get_message ()
CamelMimeMessage * | camel_folder_get_message_finish ()
CamelMimeMessage * | camel_folder_get_message_cached ()
CamelFolderQuotaInfo * | camel_folder_get_quota_info_sync ()
void | camel_folder_get_quota_info ()
CamelFolderQuotaInfo * | camel_folder_get_quota_info_finish ()
gboolean | camel_folder_purge_message_cache_sync ()
void | camel_folder_purge_message_cache ()
gboolean | camel_folder_purge_message_cache_finish ()
gboolean | camel_folder_refresh_info_sync ()
void | camel_folder_refresh_info ()
gboolean | camel_folder_refresh_info_finish ()
gboolean | camel_folder_synchronize_sync ()
void | camel_folder_synchronize ()
gboolean | camel_folder_synchronize_finish ()
gboolean | camel_folder_synchronize_message_sync ()
void | camel_folder_synchronize_message ()
gboolean | camel_folder_synchronize_message_finish ()
gboolean | camel_folder_transfer_messages_to_sync ()
void | camel_folder_transfer_messages_to ()
gboolean | camel_folder_transfer_messages_to_finish ()
void | camel_folder_prepare_content_refresh ()
gboolean | camel_folder_dup_headers_sync ()
gboolean | camel_folder_search_header_sync ()
gboolean | camel_folder_search_body_sync ()
void | camel_folder_take_state_filename ()
const gchar * | camel_folder_get_state_filename ()
void | camel_folder_save_state ()
void | camel_folder_load_state ()
void | camel_folder_class_map_legacy_property ()
CamelFolderChangeInfo * | camel_folder_change_info_new ()
CamelFolderChangeInfo * | camel_folder_change_info_copy ()
void | camel_folder_change_info_clear ()
void | camel_folder_change_info_free ()
gboolean | camel_folder_change_info_changed ()
GPtrArray * | camel_folder_change_info_get_added_uids ()
GPtrArray * | camel_folder_change_info_get_removed_uids ()
GPtrArray * | camel_folder_change_info_get_changed_uids ()
GPtrArray * | camel_folder_change_info_get_recent_uids ()
void | camel_folder_change_info_add_source ()
void | camel_folder_change_info_add_source_list ()
void | camel_folder_change_info_add_update ()
void | camel_folder_change_info_add_update_list ()
void | camel_folder_change_info_build_diff ()
void | camel_folder_change_info_cat ()
void | camel_folder_change_info_add_uid ()
void | camel_folder_change_info_remove_uid ()
void | camel_folder_change_info_change_uid ()
void | camel_folder_change_info_recent_uid ()

## Properties

char * | description | Read / Write / Construct
char * | display-name | Read / Write / Construct
char * | full-name | Read / Write / Construct
CamelThreeState | mark-seen | Read / Write / Construct
int | mark-seen-timeout | Read / Write / Construct
CamelStore * | parent-store | Read / Write / Construct Only

## Signals

void | changed | Run First
void | deleted | Run First
void | renamed | Run First

## Types and Values

#define | CAMEL_FOLDER_ERROR
enum | CamelFolderError
enum | CamelFolderParamFlags
enum | CamelFetchType
struct | CamelFolderQuotaInfo

## Object Hierarchy

        GBoxed
        ├── CamelFolderChangeInfo
        ╰── CamelFolderQuotaInfo
        GObject
        ╰── CamelFolder
            ├── CamelOfflineFolder
            ├── CamelLocalFolder
            ├── CamelPOP3Folder
            ╰── CamelVeeFolder

## Description

## Functions

### camel_folder_error_quark ()

    GQuark
    camel_folder_error_quark (void);

### camel_folder_set_lock_async ()

    void
    camel_folder_set_lock_async (CamelFolder *folder,
                                 gboolean skip_folder_lock);

Sets whether folder locking (`camel_folder_lock()` and `camel_folder_unlock()`) should be used. When set to `FALSE`, the two functions do nothing and simply return.

#### Parameters

folder | a CamelFolder |
skip_folder_lock | a value to set |

Since: 2.30

### camel_folder_get_parent_store ()

    struct _CamelStore *
    camel_folder_get_parent_store (CamelFolder *folder);

#### Parameters

folder | a CamelFolder |

#### Returns

the parent CamelStore of the folder.

[transfer none]

### camel_folder_get_folder_summary ()

    CamelFolderSummary *
    camel_folder_get_folder_summary (CamelFolder *folder);

Get the CamelFolderSummary if the backend actually supports it. The `camel_folder_has_summary_capability()` conveniently checks its availability.

#### Parameters

folder | a CamelFolder |

#### Returns

a CamelFolderSummary of the folder.

[transfer none][nullable]

Since: 3.24

### camel_folder_take_folder_summary ()

    void
    camel_folder_take_folder_summary (CamelFolder *folder,
                                      CamelFolderSummary *summary);

Sets a CamelFolderSummary of the folder. It consumes the `summary` .

This is supposed to be called only by the descendants of the CamelFolder and only at the construction time. Calling this function twice yields to an error.

#### Parameters

folder | a CamelFolder |
summary | a CamelFolderSummary. | [transfer full]

Since: 3.24

### camel_folder_get_full_name ()

    const gchar *
    camel_folder_get_full_name (CamelFolder *folder);

Returns the fully qualified name of the folder.

#### Parameters

folder | a CamelFolder |

#### Returns

the fully qualified name of the folder

### camel_folder_dup_full_name ()

    gchar *
    camel_folder_dup_full_name (CamelFolder *folder);

Thread-safe variation of `camel_folder_get_full_name()`. Use this function when accessing `folder` from multiple threads.

The returned string should be freed with `g_free()` when no longer needed.

#### Parameters

folder | a CamelFolder |

#### Returns

a newly-allocated copy of “full-name”

Since: 3.8

### camel_folder_set_full_name ()

    void
    camel_folder_set_full_name (CamelFolder *folder,
                                const gchar *full_name);

Sets the fully qualified name of the folder.

#### Parameters

folder | a CamelFolder |
full_name | a fully qualified name for the folder |

Since: 2.32

### camel_folder_get_display_name ()

    const gchar *
    camel_folder_get_display_name (CamelFolder *folder);

Returns the display name for the folder. The fully qualified name can be obtained with `camel_folder_get_full_name()`.

#### Parameters

folder | a CamelFolder |

#### Returns

the display name of the folder

Since: 3.2

### camel_folder_dup_display_name ()

    gchar *
    camel_folder_dup_display_name (CamelFolder *folder);

Thread-safe variation of `camel_folder_get_display_name()`. Use this function when accessing `folder` from multiple threads.

The returned string should be freed with `g_free()` when no longer needed.

#### Parameters

folder | a CamelFolder |

#### Returns

a newly-allocated copy of “display-name”

Since: 3.8

### camel_folder_set_display_name ()

    void
    camel_folder_set_display_name (CamelFolder *folder,
                                   const gchar *display_name);

Sets the display name for the folder.

#### Parameters

folder | a CamelFolder |
display_name | a display name for the folder |

Since: 3.2

### camel_folder_get_full_display_name ()

    const gchar *
    camel_folder_get_full_display_name (CamelFolder *folder);

Similar to the `camel_folder_get_full_name()`, only returning full path to the `folder` suitable for the display to a user.

Return: (transfer none): full path to the `folder` suitable for the display to a user

#### Parameters

folder | a CamelFolder |

Since: 3.46

### camel_folder_get_description ()

    const gchar *
    camel_folder_get_description (CamelFolder *folder);

Returns a description of the folder suitable for displaying to the user.

#### Parameters

folder | a CamelFolder |

#### Returns

a description of the folder

Since: 2.32

### camel_folder_dup_description ()

    gchar *
    camel_folder_dup_description (CamelFolder *folder);

Thread-safe variation of `camel_folder_get_description()`. Use this function when accessing `folder` from multiple threads.

The returned string should be freed with `g_free()` when no longer needed.

#### Parameters

folder | a CamelFolder |

#### Returns

a newly-allocated copy of “description”

Since: 3.8

### camel_folder_set_description ()

    void
    camel_folder_set_description (CamelFolder *folder,
                                  const gchar *description);

Sets a description of the folder suitable for displaying to the user.

#### Parameters

folder | a CamelFolder |
description | a description of the folder |

Since: 2.32

### camel_folder_get_flags ()

    guint32
    camel_folder_get_flags (CamelFolder *folder);

#### Parameters

folder | a CamelFolder |

#### Returns

Folder flags (bit-or of CamelFolderFlags) of the `folder`

Since: 3.24

### camel_folder_set_flags ()

    void
    camel_folder_set_flags (CamelFolder *folder,
                            guint32 folder_flags);

Sets folder flags (bit-or of CamelFolderFlags) for the `folder` .

#### Parameters

folder | a CamelFolder |
folder_flags | flags (bit-or of CamelFolderFlags) to set |

Since: 3.24

### camel_folder_get_mark_seen ()

    CamelThreeState
    camel_folder_get_mark_seen (CamelFolder *folder);

#### Parameters

folder | a CamelFolder |

#### Returns

a CamelThreeState, whether messages in this `folder` should be marked as seen automatically.

Since: 3.32

### camel_folder_set_mark_seen ()

    void
    camel_folder_set_mark_seen (CamelFolder *folder,
                                CamelThreeState mark_seen);

Sets whether the messages in this `folder` should be marked as seen automatically. An inconsistent state means to use global option.

#### Parameters

folder | a CamelFolder |
mark_seen | a CamelThreeState as the value to set |

Since: 3.32

### camel_folder_get_mark_seen_timeout ()

    gint
    camel_folder_get_mark_seen_timeout (CamelFolder *folder);

#### Parameters

folder | a CamelFolder |

#### Returns

timeout in milliseconds for marking messages as seen in this `folder`

Since: 3.32

### camel_folder_set_mark_seen_timeout ()

    void
    camel_folder_set_mark_seen_timeout (CamelFolder *folder,
                                        gint timeout);

Sets the `timeout` in milliseconds for marking messages as seen in this `folder` . Whether the timeout is used depends on `camel_folder_get_mark_seen()`.

#### Parameters

folder | a CamelFolder |
timeout | a timeout in milliseconds |

Since: 3.32

### camel_folder_get_permanent_flags ()

    guint32
    camel_folder_get_permanent_flags (CamelFolder *folder);

#### Parameters

folder | a CamelFolder |

#### Returns

the set of CamelMessageFlags that can be permanently stored on a message between sessions. If it includes CAMEL_MESSAGE_USER, then user-defined flags will be remembered.

### camel_folder_get_message_flags ()

    guint32
    camel_folder_get_message_flags (CamelFolder *folder,
                                    const gchar *uid);

#### Parameters

folder | a CamelFolder |
uid | the UID of a message in `folder` |

#### Returns

the CamelMessageFlags that are set on the indicated message.

### camel_folder_set_message_flags ()

    gboolean
    camel_folder_set_message_flags (CamelFolder *folder,
                                    const gchar *uid,
                                    guint32 mask,
                                    guint32 set);

Sets those flags specified by `mask` to the values specified by `set` on the indicated message. (This may or may not persist after the folder or store is closed. See `camel_folder_get_permanent_flags()`)

E.g. to set the deleted flag and clear the draft flag, use camel_folder_set_message_flags (folder, uid, CAMEL_MESSAGE_DELETED|CAMEL_MESSAGE_DRAFT, CAMEL_MESSAGE_DELETED);

#### Parameters

folder | a CamelFolder |
uid | the UID of a message in `folder` |
mask | a mask of CamelMessageFlags bit-or values to use |
set | the flags to set, also bit-or of CamelMessageFlags |

#### Returns

`TRUE` if the flags were changed or `FALSE` otherwise

### camel_folder_has_summary_capability ()

    gboolean
    camel_folder_has_summary_capability (CamelFolder *folder);

Get whether or not the folder has a summary.

#### Parameters

folder | a CamelFolder |

#### Returns

`TRUE` if a summary is available or `FALSE` otherwise

### camel_folder_get_message_count ()

    gint
    camel_folder_get_message_count (CamelFolder *folder);

#### Parameters

folder | a CamelFolder |

#### Returns

the number of messages in the folder, or -1 if unknown

### camel_folder_delete_message()

    #define             camel_folder_delete_message(folder, uid)

### camel_folder_dup_uids ()

    GPtrArray *
    camel_folder_dup_uids (CamelFolder *folder);

Duplicates a list of UIDs available in the `folder` . Free the array with `g_ptr_array_unref()`, when no longer needed.

#### Parameters

folder | a CamelFolder |

#### Returns

a new GPtrArray of UIDs corresponding to the messages available in the `folder` .

[element-type utf8][transfer container]

Since: 3.58

### camel_folder_dup_uncached_uids ()

    GPtrArray *
    camel_folder_dup_uncached_uids (CamelFolder *folder,
                                    GPtrArray *uids,
                                    GError **error);

Returns the known-uncached uids from a list of uids. It may return uids which are locally cached but should never filter out a uid which is not locally cached.

Free the result with `g_ptr_array_unref()`, when no longer needed.

#### Parameters

folder | a CamelFolder |
uids | the array of uids to filter down to uncached ones. | [element-type utf8]
error | return location for a GError, or `NULL` |

#### Returns

a new GPtrArray with UID-s, which are not cached locally.

[element-type utf8][transfer container]

Since: 3.58

### camel_folder_cmp_uids ()

    gint
    camel_folder_cmp_uids (CamelFolder *folder,
                           const gchar *uid1,
                           const gchar *uid2);

Compares two uids. The return value meaning is the same as in any other compare function.

Note that the default compare function expects a decimal number at the beginning of a uid, thus if provider uses different uid values, then it should subclass this function.

#### Parameters

folder | a CamelFolder |
uid1 | The first uid. |
uid2 | the second uid. |

Since: 2.28

### camel_folder_sort_uids ()

    void
    camel_folder_sort_uids (CamelFolder *folder,
                            GPtrArray *uids);

Sorts the array of UIDs.

#### Parameters

folder | a CamelFolder |
uids | array of uids. | [element-type utf8]

Since: 2.24

### camel_folder_search_sync ()

    gboolean
    camel_folder_search_sync (CamelFolder *folder,
                              const gchar *expression,
                              GPtrArray **out_uids,
                              GCancellable *cancellable,
                              GError **error);

Searches the folder for messages matching the given search expression.

Free the array with `g_ptr_array_unref()`, when no longer needed.

#### Parameters

folder | a CamelFolder |
expression | a search expression |
out_uids | return location for a GPtrArray of uids of matching messages, or `NULL` when none found or error happened. | [out][element-type utf8][transfer container][nullable]
cancellable | a GCancellable |
error | return location for a GError, or `NULL` |

#### Returns

whether succeeded

Since: 3.58

### camel_folder_get_message_info ()

    CamelMessageInfo *
    camel_folder_get_message_info (CamelFolder *folder,
                                   const gchar *uid);

Retrieve the CamelMessageInfo for the specified `uid` .

#### Parameters

folder | a CamelFolder |
uid | the uid of a message |

#### Returns

The summary information for the indicated message, or `NULL` if the uid does not exist. Free the returned object with `g_object_unref()`, when done with it.

[transfer full][nullable]

### camel_folder_delete ()

    void
    camel_folder_delete (CamelFolder *folder);

Marks `folder` as deleted and performs any required cleanup.

This also emits the “deleted” signal from an idle source on the main loop. The idle source's priority is G_PRIORITY_HIGH_IDLE.

#### Parameters

folder | a CamelFolder |

### camel_folder_rename ()

    void
    camel_folder_rename (CamelFolder *folder,
                         const gchar *new_name);

Marks `folder` as renamed.

This also emits the “renamed” signal from an idle source on the main loop. The idle source's priority is G_PRIORITY_HIGH_IDLE.

NOTE: This is an internal function used by camel stores, no locking is performed on the folder.

#### Parameters

folder | a CamelFolder |
new_name | new name for the folder |

### camel_folder_changed ()

    void
    camel_folder_changed (CamelFolder *folder,
                          CamelFolderChangeInfo *changes);

Emits the “changed” signal from an idle source on the main loop. The idle source's priority is G_PRIORITY_LOW.

#### Parameters

folder | a CamelFolder |
changes | change information for `folder` |

Since: 2.32

### camel_folder_freeze ()

    void
    camel_folder_freeze (CamelFolder *folder);

Freezes the folder so that a series of operation can be performed without "folder_changed" signals being emitted. When the folder is later thawed with `camel_folder_thaw()`, the suppressed signals will be emitted.

#### Parameters

folder | a CamelFolder |

### camel_folder_thaw ()

    void
    camel_folder_thaw (CamelFolder *folder);

Thaws the folder and emits any pending folder_changed signals.

#### Parameters

folder | a CamelFolder |

### camel_folder_is_frozen ()

    gboolean
    camel_folder_is_frozen (CamelFolder *folder);

#### Parameters

folder | a CamelFolder |

#### Returns

whether or not the folder is frozen

### camel_folder_get_frozen_count ()

    gint
    camel_folder_get_frozen_count (CamelFolder *folder);

#### Parameters

folder | a CamelFolder |

Since: 2.32

### camel_folder_quota_info_new ()

    CamelFolderQuotaInfo *
    camel_folder_quota_info_new (const gchar *name,
                                 guint64 used,
                                 guint64 total);

#### Parameters

name | Name of the quota. |
used | Current usage of the quota. |
total | Total available size of the quota. |

#### Returns

newly allocated CamelFolderQuotaInfo structure with initialized values based on the parameters, with next member set to NULL.

Since: 2.24

### camel_folder_quota_info_clone ()

    CamelFolderQuotaInfo *
    camel_folder_quota_info_clone (const CamelFolderQuotaInfo *info);

Makes a copy of the given info and all next-s.

#### Parameters

info | a CamelFolderQuotaInfo object to clone. |

Since: 2.24

### camel_folder_quota_info_free ()

    void
    camel_folder_quota_info_free (CamelFolderQuotaInfo *info);

Frees this and all next objects.

#### Parameters

info | a CamelFolderQuotaInfo object to free. |

Since: 2.24

### camel_folder_get_filename ()

    gchar *
    camel_folder_get_filename (CamelFolder *folder,
                               const gchar *uid,
                               GError **error);

#### Parameters

folder | a CamelFolder |
uid | a message UID |
error | return location for a GError, or `NULL` |

#### Returns

a file name corresponding to a message with UID `uid` . Free the returned string with `g_free()`, when no longer needed.

[transfer full]

Since: 2.26

### camel_folder_lock ()

    void
    camel_folder_lock (CamelFolder *folder);

Locks `folder` . Unlock it with `camel_folder_unlock()`.

#### Parameters

folder | a CamelFolder |

Since: 2.32

### camel_folder_unlock ()

    void
    camel_folder_unlock (CamelFolder *folder);

Unlocks `folder` , previously locked with `camel_folder_lock()`.

#### Parameters

folder | a CamelFolder |

Since: 2.32

### camel_folder_append_message_sync ()

    gboolean
    camel_folder_append_message_sync (CamelFolder *folder,
                                      CamelMimeMessage *message,
                                      CamelMessageInfo *info,
                                      gchar **appended_uid,
                                      GCancellable *cancellable,
                                      GError **error);

Appends `message` to `folder` . Only the flag and tag data from `info` are used. If `info` is `NULL`, no flags or tags will be set.

#### Parameters

folder | a CamelFolder |
message | a CamelMimeMessage |
info | a CamelMessageInfo with additional flags/etc to set on the new message, or `NULL`. | [nullable]
appended_uid | if non-`NULL`, the UID of the appended message will be returned here, if it is known. | [out][optional][nullable]
cancellable | optional GCancellable object, or `NULL` |
error | return location for a GError, or `NULL` |

#### Returns

`TRUE` on success, `FALSE` on error

Since: 3.0

### camel_folder_append_message ()

    void
    camel_folder_append_message (CamelFolder *folder,
                                 CamelMimeMessage *message,
                                 CamelMessageInfo *info,
                                 gint io_priority,
                                 GCancellable *cancellable,
                                 GAsyncReadyCallback callback,
                                 gpointer user_data);

Appends `message` to `folder` asynchronously. Only the flag and tag data from `info` are used. If `info` is `NULL`, no flags or tags will be set.

When the operation is finished, `callback` will be called. You can then call `camel_folder_append_message_finish()` to get the result of the operation.

#### Parameters

folder | a CamelFolder |
message | a CamelMimeMessage |
info | a CamelMessageInfo with additional flags/etc to set on the new message, or `NULL`. | [nullable]
io_priority | the I/O priority of the request |
cancellable | optional GCancellable object, or `NULL` |
callback | a GAsyncReadyCallback to call when the request is satisfied |
user_data | data to pass to the callback function |

Since: 3.0

### camel_folder_append_message_finish ()

    gboolean
    camel_folder_append_message_finish (CamelFolder *folder,
                                        GAsyncResult *result,
                                        gchar **appended_uid,
                                        GError **error);

Finishes the operation started with `camel_folder_append_message_finish()`.

#### Parameters

folder | a CamelFolder |
result | a GAsyncResult |
appended_uid | if non-`NULL`, the UID of the appended message will be returned here, if it is known. | [out][optional][nullable]
error | return location for a GError, or `NULL` |

#### Returns

`TRUE` on success, `FALSE` on error

Since: 3.0

### camel_folder_expunge_sync ()

    gboolean
    camel_folder_expunge_sync (CamelFolder *folder,
                               GCancellable *cancellable,
                               GError **error);

Deletes messages which have been marked as "DELETED".

#### Parameters

folder | a CamelFolder |
cancellable | optional GCancellable object, or `NULL` |
error | return location for a GError, or `NULL` |

#### Returns

`TRUE` on success, `FALSE` on error

Since: 3.0

### camel_folder_expunge ()

    void
    camel_folder_expunge (CamelFolder *folder,
                          gint io_priority,
                          GCancellable *cancellable,
                          GAsyncReadyCallback callback,
                          gpointer user_data);

Asynchronously deletes messages which have been marked as "DELETED".

When the operation is finished, `callback` will be called. You can then call `camel_folder_expunge_finish()` to get the result of the operation.

#### Parameters

folder | a CamelFolder |
io_priority | the I/O priority of the request |
cancellable | optional GCancellable object, or `NULL` |
callback | a GAsyncReadyCallback to call when the request is satisfied |
user_data | data to pass to the callback function |

Since: 3.0

### camel_folder_expunge_finish ()

    gboolean
    camel_folder_expunge_finish (CamelFolder *folder,
                                 GAsyncResult *result,
                                 GError **error);

Finishes the operation started with `camel_folder_expunge()`.

#### Parameters

folder | a CamelFolder |
result | a GAsyncResult |
error | return location for a GError, or `NULL` |

#### Returns

`TRUE` on success, `FALSE` on error

Since: 3.0

### camel_folder_get_message_sync ()

    CamelMimeMessage *
    camel_folder_get_message_sync (CamelFolder *folder,
                                   const gchar *message_uid,
                                   GCancellable *cancellable,
                                   GError **error);

Gets the message corresponding to `message_uid` from `folder` .

#### Parameters

folder | a CamelFolder |
message_uid | the message UID |
cancellable | optional GCancellable object, or `NULL` |
error | return location for a GError, or `NULL` |

#### Returns

a CamelMimeMessage corresponding to the requested UID.

[transfer none]

Since: 3.0

### camel_folder_get_message ()

    void
    camel_folder_get_message (CamelFolder *folder,
                              const gchar *message_uid,
                              gint io_priority,
                              GCancellable *cancellable,
                              GAsyncReadyCallback callback,
                              gpointer user_data);

Asynchronously gets the message corresponding to `message_uid` from `folder` .

When the operation is finished, `callback` will be called. You can then call `camel_folder_get_message_finish()` to get the result of the operation.

#### Parameters

folder | a CamelFolder |
message_uid | the message UID |
io_priority | the I/O priority of the request |
cancellable | optional GCancellable object, or `NULL` |
callback | a GAsyncReadyCallback to call when the request is satisfied |
user_data | data to pass to the callback function |

Since: 3.0

### camel_folder_get_message_finish ()

    CamelMimeMessage *
    camel_folder_get_message_finish (CamelFolder *folder,
                                     GAsyncResult *result,
                                     GError **error);

Finishes the operation started with `camel_folder_get_message()`.

#### Parameters

folder | a CamelFolder |
result | a GAsyncResult |
error | return location for a GError or `NULL` |

#### Returns

a CamelMimeMessage corresponding to the requested UID.

[transfer none]

Since: 3.0

### camel_folder_get_message_cached ()

    CamelMimeMessage *
    camel_folder_get_message_cached (CamelFolder *folder,
                                     const gchar *message_uid,
                                     GCancellable *cancellable);

Gets the message corresponding to `message_uid` from the `folder` cache, if available locally. This should not do any network I/O, only check if message is already downloaded and return it quickly, not being blocked by the folder's lock. Returning NULL is not considered as an error, it just means that the message is still to-be-downloaded.

Note: This function is called automatically within `camel_folder_get_message_sync()`.

#### Parameters

folder | a CamelFolder |
message_uid | the message UID |
cancellable | optional GCancellable object, or `NULL` |

#### Returns

a cached CamelMimeMessage corresponding to the requested UID.

[transfer full][nullable]

Since: 3.24

### camel_folder_get_quota_info_sync ()

    CamelFolderQuotaInfo *
    camel_folder_get_quota_info_sync (CamelFolder *folder,
                                      GCancellable *cancellable,
                                      GError **error);

Gets a list of known quotas for `folder` . Free the returned CamelFolderQuotaInfo struct with `camel_folder_quota_info_free()`.

If quotas are not supported for `folder` , the function returns `NULL` and sets `error` to G_IO_ERROR_NOT_SUPPORTED.

#### Parameters

folder | a CamelFolder |
cancellable | optional GCancellable object, or `NULL` |
error | return location for a GError, or `NULL` |

#### Returns

a CamelFolderQuotaInfo, or `NULL` on error

Since: 3.2

### camel_folder_get_quota_info ()

    void
    camel_folder_get_quota_info (CamelFolder *folder,
                                 gint io_priority,
                                 GCancellable *cancellable,
                                 GAsyncReadyCallback callback,
                                 gpointer user_data);

Asynchronously gets a list of known quotas for `folder` .

When the operation is finished, `callback` will be called. You can then call `camel_folder_get_quota_info_finish()` to get the result of the operation.

#### Parameters

folder | a CamelFolder |
io_priority | the I/O priority of the request |
cancellable | optional GCancellable object, or `NULL` |
callback | a GAsyncReadyCallback to call when the request is satisfied |
user_data | data to pass to the callback function |

Since: 3.2

### camel_folder_get_quota_info_finish ()

    CamelFolderQuotaInfo *
    camel_folder_get_quota_info_finish (CamelFolder *folder,
                                        GAsyncResult *result,
                                        GError **error);

Finishes the operation started with `camel_folder_get_quota_info()`. Free the returned CamelFolderQuotaInfo struct with `camel_folder_quota_info_free()`.

If quotas are not supported for `folder` , the function returns `NULL` and sets `error` to G_IO_ERROR_NOT_SUPPORTED.

#### Parameters

folder | a CamelFolder |
result | a GAsyncResult |
error | return location for a GError or `NULL` |

#### Returns

a CamelFolderQuotaInfo, or `NULL` on error

Since: 3.2

### camel_folder_purge_message_cache_sync ()

    gboolean
    camel_folder_purge_message_cache_sync (CamelFolder *folder,
                                           gchar *start_uid,
                                           gchar *end_uid,
                                           GCancellable *cancellable,
                                           GError **error);

Delete the local cache of all messages between these uids.

#### Parameters

folder | a CamelFolder |
start_uid | the start message UID |
end_uid | the end message UID |
cancellable | optional GCancellable object, or `NULL` |
error | return location for a GError, or `NULL` |

#### Returns

`TRUE` on success, `FALSE` on failure

Since: 3.4

### camel_folder_purge_message_cache ()

    void
    camel_folder_purge_message_cache (CamelFolder *folder,
                                      gchar *start_uid,
                                      gchar *end_uid,
                                      gint io_priority,
                                      GCancellable *cancellable,
                                      GAsyncReadyCallback callback,
                                      gpointer user_data);

Delete the local cache of all messages between these uids.

When the operation is finished, `callback` will be called. You can then call `camel_folder_purge_message_cache_finish()` to get the result of the operation.

#### Parameters

folder | a CamelFolder |
start_uid | the start message UID |
end_uid | the end message UID |
io_priority | the I/O priority of the request |
cancellable | optional GCancellable object, or `NULL` |
callback | a GAsyncReadyCallback to call when the request is satisfied |
user_data | data to pass to the callback function |

Since: 3.4

### camel_folder_purge_message_cache_finish ()

    gboolean
    camel_folder_purge_message_cache_finish
                                   (CamelFolder *folder,
                                    GAsyncResult *result,
                                    GError **error);

Finishes the operation started with `camel_folder_purge_message_cache()`.

#### Parameters

folder | a CamelFolder |
result | a GAsyncResult |
error | return location for a GError, or `NULL` |

#### Returns

`TRUE` on success, `FALSE` on failure

Since: 3.4

### camel_folder_refresh_info_sync ()

    gboolean
    camel_folder_refresh_info_sync (CamelFolder *folder,
                                    GCancellable *cancellable,
                                    GError **error);

Synchronizes a folder's summary with its backing store.

#### Parameters

folder | a CamelFolder |
cancellable | optional GCancellable object, or `NULL` |
error | return location for a GError, or `NULL` |

#### Returns

`TRUE` on success, `FALSE` on error

Since: 3.0

### camel_folder_refresh_info ()

    void
    camel_folder_refresh_info (CamelFolder *folder,
                               gint io_priority,
                               GCancellable *cancellable,
                               GAsyncReadyCallback callback,
                               gpointer user_data);

Asynchronously synchronizes a folder's summary with its backing store.

When the operation is finished, `callback` will be called. You can then call `camel_folder_refresh_info_finish()` to get the result of the operation.

#### Parameters

folder | a CamelFolder |
io_priority | the I/O priority of the request |
cancellable | optional GCancellable object, or `NULL` |
callback | a GAsyncReadyCallback to call when the request is satisfied |
user_data | data to pass to the callback function |

Since: 3.2

### camel_folder_refresh_info_finish ()

    gboolean
    camel_folder_refresh_info_finish (CamelFolder *folder,
                                      GAsyncResult *result,
                                      GError **error);

Finishes the operation started with `camel_folder_refresh_info()`.

#### Parameters

folder | a CamelFolder |
result | a GAsyncResult |
error | return location for a GError, or `NULL` |

#### Returns

`TRUE` on success, `FALSE` on error

Since: 3.2

### camel_folder_synchronize_sync ()

    gboolean
    camel_folder_synchronize_sync (CamelFolder *folder,
                                   gboolean expunge,
                                   GCancellable *cancellable,
                                   GError **error);

Synchronizes any changes that have been made to `folder` to its backing store, optionally expunging deleted messages as well.

#### Parameters

folder | a CamelFolder |
expunge | whether to expunge after synchronizing |
cancellable | optional GCancellable object, or `NULL` |
error | return location for a GError, or `NULL` |

#### Returns

`TRUE` on success, `FALSE` on error

Since: 3.0

### camel_folder_synchronize ()

    void
    camel_folder_synchronize (CamelFolder *folder,
                              gboolean expunge,
                              gint io_priority,
                              GCancellable *cancellable,
                              GAsyncReadyCallback callback,
                              gpointer user_data);

Synchronizes any changes that have been made to `folder` to its backing store asynchronously, optionally expunging deleted messages as well.

When the operation is finished, `callback` will be called. You can then call `camel_folder_synchronize_finish()` to get the result of the operation.

#### Parameters

folder | a CamelFolder |
expunge | whether to expunge after synchronizing |
io_priority | the I/O priority of the request |
cancellable | optional GCancellable object, or `NULL` |
callback | a GAsyncReadyCallback to call when the request is satisfied |
user_data | data to pass to the callback function |

Since: 3.0

### camel_folder_synchronize_finish ()

    gboolean
    camel_folder_synchronize_finish (CamelFolder *folder,
                                     GAsyncResult *result,
                                     GError **error);

Finishes the operation started with `camel_folder_synchronize()`.

#### Parameters

folder | a CamelFolder |
result | a GAsyncResult |
error | return location for a GError, or `NULL` |

#### Returns

`TRUE` on success, `FALSE` on error

Since: 3.0

### camel_folder_synchronize_message_sync ()

    gboolean
    camel_folder_synchronize_message_sync (CamelFolder *folder,
                                           const gchar *message_uid,
                                           GCancellable *cancellable,
                                           GError **error);

Ensure that a message identified by `message_uid` has been synchronized in `folder` so that calling `camel_folder_get_message()` on it later will work in offline mode.

#### Parameters

folder | a CamelFolder |
message_uid | a message UID |
cancellable | optional GCancellable object, or `NULL` |
error | return location for a GError, or `NULL` |

#### Returns

`TRUE` on success, `FALSE` on error

Since: 3.0

### camel_folder_synchronize_message ()

    void
    camel_folder_synchronize_message (CamelFolder *folder,
                                      const gchar *message_uid,
                                      gint io_priority,
                                      GCancellable *cancellable,
                                      GAsyncReadyCallback callback,
                                      gpointer user_data);

Asynchronously ensure that a message identified by `message_uid` has been synchronized in `folder` so that calling `camel_folder_get_message()` on it later will work in offline mode.

When the operation is finished, `callback` will be called. You can then call `camel_folder_synchronize_message_finish()` to get the result of the operation.

#### Parameters

folder | a CamelFolder |
message_uid | a message UID |
io_priority | the I/O priority of the request |
cancellable | optional GCancellable object, or `NULL` |
callback | a GAsyncReadyCallback to call when the request is satisfied |
user_data | data to pass to the callback function |

Since: 3.0

### camel_folder_synchronize_message_finish ()

    gboolean
    camel_folder_synchronize_message_finish
                                   (CamelFolder *folder,
                                    GAsyncResult *result,
                                    GError **error);

Finishes the operation started with `camel_folder_synchronize_message()`.

#### Parameters

folder | a CamelFolder |
result | a GAsyncResult |
error | return location for a GError, or `NULL` |

#### Returns

`TRUE` on success, `FALSE` on error

Since: 3.0

### camel_folder_transfer_messages_to_sync ()

    gboolean
    camel_folder_transfer_messages_to_sync
                                   (CamelFolder *source,
                                    GPtrArray *message_uids,
                                    CamelFolder *destination,
                                    gboolean delete_originals,
                                    GPtrArray **transferred_uids,
                                    GCancellable *cancellable,
                                    GError **error);

Copies or moves messages from one folder to another. If the `source` and `destination` folders have the same parent_store, this may be more efficient than using `camel_folder_append_message_sync()`.

#### Parameters

source | the source CamelFolder |
message_uids | message UIDs in `source` . | [element-type utf8]
destination | the destination CamelFolder |
delete_originals | whether or not to delete the original messages |
transferred_uids | if non-`NULL`, the UIDs of the resulting messages in `destination` will be stored here, if known. | [element-type utf8][out][optional][nullable][transfer container]
cancellable | optional GCancellable object, or `NULL` |
error | return location for a GError, or `NULL` |

#### Returns

`TRUE` on success, `FALSE` on failure

Since: 3.0

### camel_folder_transfer_messages_to ()

    void
    camel_folder_transfer_messages_to (CamelFolder *source,
                                       GPtrArray *message_uids,
                                       CamelFolder *destination,
                                       gboolean delete_originals,
                                       gint io_priority,
                                       GCancellable *cancellable,
                                       GAsyncReadyCallback callback,
                                       gpointer user_data);

Asynchronously copies or moves messages from one folder to another. If the `source` or `destination` folders have the same parent store, this may be more efficient than using `camel_folder_append_message()`.

When the operation is finished, `callback` will be called. You can then call `camel_folder_transfer_messages_to_finish()` to get the result of the operation.

#### Parameters

source | the source CamelFolder |
message_uids | message UIDs in `source` . | [element-type utf8]
destination | the destination CamelFolder |
delete_originals | whether or not to delete the original messages |
io_priority | the I/O priority of the request |
cancellable | optional GCancellable object, or `NULL` |
callback | a GAsyncReadyCallback to call when the request is satisfied |
user_data | data to pass to the callback function |

Since: 3.0

### camel_folder_transfer_messages_to_finish ()

    gboolean
    camel_folder_transfer_messages_to_finish
                                   (CamelFolder *source,
                                    GAsyncResult *result,
                                    GPtrArray **transferred_uids,
                                    GError **error);

Finishes the operation started with `camel_folder_transfer_messages_to()`.

#### Parameters

source | a CamelFolder |
result | a GAsyncResult |
transferred_uids | if non-`NULL`, the UIDs of the resulting messages in `destination` will be stored here, if known. | [element-type utf8][out][optional][nullable][transfer container]
error | return location for a GError, or `NULL` |

#### Returns

`TRUE` on success, `FALSE` on error

Since: 3.0

### camel_folder_prepare_content_refresh ()

    void
    camel_folder_prepare_content_refresh (CamelFolder *folder);

Lets the `folder` know that it should refresh its content the next time from fresh. This is useful for remote accounts, to fully re-check the folder content against the server.

#### Parameters

folder | a CamelFolder |

Since: 3.22

### camel_folder_dup_headers_sync ()

    gboolean
    camel_folder_dup_headers_sync (CamelFolder *folder,
                                   const gchar *uid,
                                   CamelNameValueArray **out_headers,
                                   GCancellable *cancellable,
                                   GError **error);

Reads headers of a message with the `uid` and returns it in the `out_headers` . Free the headers with `camel_name_value_array_free()`, when no longer needed.

This is an optional method, which is meant to be used by the providers which can read the headers from the server when not available locally. The default implementation tries to read the headers from a loaded message info and a locally cached message when its file name is known. It returns a G_IO_ERROR_NOT_FOUND error when failed.

#### Parameters

folder | a CamelFolder |
uid | a message UID |
out_headers | return location to set read CamelNameValueArray to. | [out][transfer full]
cancellable | optional GCancellable object, or `NULL` |
error | return location for a GError, or `NULL` |

#### Returns

whether the headers had been found and the `out_headers` populated

Since: 3.58

### camel_folder_search_header_sync ()

    gboolean
    camel_folder_search_header_sync (CamelFolder *folder,
                                     const gchar *header_name,
                                     GPtrArray *words,
                                     GPtrArray **out_uids,
                                     GCancellable *cancellable,
                                     GError **error);

Search the folder for messages with header `header_name` , which either contains the `words` or, when the `words` is empty or `NULL`, the header exists in the message. The list of satisfying message UIDs is returned in the `out_uids` . The result list can be empty, meaning no such message exists.

Free the returned `out_uids` with `g_ptr_array_unref()`, when no longer needed.

This is an optional helper method, meant to search server-side. The default implementation returns a G_IO_ERROR_NOT_SUPPORTED error.

#### Parameters

folder | a CamelFolder |
header_name | a header name to search |
words | a list of words to search for, or `NULL` to check an existence of the header instead. | [nullable][element-type utf8]
out_uids | a GPtrArray of the satisfying message UIDs. | [out][transfer container][element-type utf8]
cancellable | optional GCancellable object, or `NULL` |
error | return location for a GError, or `NULL` |

#### Returns

whether could search and set the `out_uids` .

Since: 3.58

### camel_folder_search_body_sync ()

    gboolean
    camel_folder_search_body_sync (CamelFolder *folder,
                                   GPtrArray *words,
                                   GPtrArray **out_uids,
                                   GCancellable *cancellable,
                                   GError **error);

Search the folder for messages with body containing `words` . The list of satisfying message UIDs is returned in the `out_uids` . The result list can be empty, meaning no such message exists.

Free the returned `out_uids` with `g_ptr_array_unref()`, when no longer needed.

This is an optional helper method, meant to search server-side. The default implementation returns a G_IO_ERROR_NOT_SUPPORTED error.

#### Parameters

folder | a CamelFolder |
words | a list of words to search for, or `NULL` to check an existence of the header instead. | [element-type utf8]
out_uids | a GPtrArray of the satisfying message UIDs. | [out][transfer container][element-type utf8]
cancellable | optional GCancellable object, or `NULL` |
error | return location for a GError, or `NULL` |

#### Returns

whether could search and set the `out_uids` .

Since: 3.58

### camel_folder_take_state_filename ()

    void
    camel_folder_take_state_filename (CamelFolder *self,
                                      gchar *filename);

Set the current state filename.

#### Parameters

self | a CamelFolder |
filename | the state filename. | [transfer full]

Since: 3.58

### camel_folder_get_state_filename ()

    const gchar *
    camel_folder_get_state_filename (CamelFolder *self);

Get the current state filename.

#### Parameters

self | a CamelFolder |

#### Returns

the state filename.

[nullable]

Since: 3.58

### camel_folder_save_state ()

    void
    camel_folder_save_state (CamelFolder *self);

Saves properties with CAMEL_FOLDER_PARAM_PERMANENT into a state file previously set by `camel_folder_take_state_filename()`. The function does nothing when no state file is set.

Any errors are reported on the terminal, because they are meant non-fatal and rather informative.

#### Parameters

self | a CamelFolder |

Since: 3.58

### camel_folder_load_state ()

    void
    camel_folder_load_state (CamelFolder *self);

Loads properties with CAMEL_FOLDER_PARAM_PERMANENT from a state file previously set by `camel_folder_take_state_filename()`. The function does nothing when no state file is set.

Any errors are reported on the terminal, because they are meant non-fatal and rather informative.

#### Parameters

self | a CamelFolder |

Since: 3.58

### camel_folder_class_map_legacy_property ()

    void
    camel_folder_class_map_legacy_property
                                   (CamelFolderClass *folder_class,
                                    const gchar *prop_name,
                                    gint32 tag);

Add the legacy property binding to allow opening legacy binary file states.

#### Parameters

folder_class | the class to add the property mapping |
prop_name | the static property name. | [transfer none]
tag | the legacy property tag |

Since: 3.58

### camel_folder_change_info_new ()

    CamelFolderChangeInfo *
    camel_folder_change_info_new (void);

Create a new folder change info structure.

Change info structures are not MT-SAFE and must be locked for exclusive access externally.

#### Returns

a new CamelFolderChangeInfo.

[transfer full]

### camel_folder_change_info_copy ()

    CamelFolderChangeInfo *
    camel_folder_change_info_copy (CamelFolderChangeInfo *src);

Creates a copy of the `src` .

#### Parameters

src | a CamelFolderChangeInfo to make copy of |

#### Returns

Copy of the `src` .

[transfer full]

Since: 3.24

### camel_folder_change_info_clear ()

    void
    camel_folder_change_info_clear (CamelFolderChangeInfo *info);

Empty out the change info; called after changes have been processed.

#### Parameters

info | a CamelFolderChangeInfo |

### camel_folder_change_info_free ()

    void
    camel_folder_change_info_free (CamelFolderChangeInfo *info);

Free memory associated with the folder change info lists.

#### Parameters

info | a CamelFolderChangeInfo |

### camel_folder_change_info_changed ()

    gboolean
    camel_folder_change_info_changed (CamelFolderChangeInfo *info);

Gets whether or not there have been any changes.

#### Parameters

info | a CamelFolderChangeInfo |

#### Returns

`TRUE` if the changeset contains any changes or `FALSE` otherwise

### camel_folder_change_info_get_added_uids ()

    GPtrArray *
    camel_folder_change_info_get_added_uids
                                   (CamelFolderChangeInfo *info);

Returns an array of added messages UIDs. The returned array, the same as its content, is owned by the `info` .

#### Parameters

info | a CamelFolderChangeInfo |

#### Returns

An array of added UIDs.

[element-type utf8][transfer none]

Since: 3.24

### camel_folder_change_info_get_removed_uids ()

    GPtrArray *
    camel_folder_change_info_get_removed_uids
                                   (CamelFolderChangeInfo *info);

Returns an array of removed messages UIDs. The returned array, the same as its content, is owned by the `info` .

#### Parameters

info | a CamelFolderChangeInfo |

#### Returns

An array of removed UIDs.

[element-type utf8][transfer none]

Since: 3.24

### camel_folder_change_info_get_changed_uids ()

    GPtrArray *
    camel_folder_change_info_get_changed_uids
                                   (CamelFolderChangeInfo *info);

Returns an array of changed messages UIDs. The returned array, the same as its content, is owned by the `info` .

#### Parameters

info | a CamelFolderChangeInfo |

#### Returns

An array of changed UIDs.

[element-type utf8][transfer none]

Since: 3.24

### camel_folder_change_info_get_recent_uids ()

    GPtrArray *
    camel_folder_change_info_get_recent_uids
                                   (CamelFolderChangeInfo *info);

Returns an array of recent messages UIDs. The returned array, the same as its content, is owned by the `info` .

#### Parameters

info | a CamelFolderChangeInfo |

#### Returns

An array of recent UIDs.

[element-type utf8][transfer none]

Since: 3.24

### camel_folder_change_info_add_source ()

    void
    camel_folder_change_info_add_source (CamelFolderChangeInfo *info,
                                         const gchar *uid);

Add a source uid for generating a changeset.

#### Parameters

info | a CamelFolderChangeInfo |
uid | a uid |

### camel_folder_change_info_add_source_list ()

    void
    camel_folder_change_info_add_source_list
                                   (CamelFolderChangeInfo *info,
                                    const GPtrArray *list);

Add a list of source uid's for generating a changeset.

#### Parameters

info | a CamelFolderChangeInfo |
list | a list of uids. | [element-type utf8][transfer container]

### camel_folder_change_info_add_update ()

    void
    camel_folder_change_info_add_update (CamelFolderChangeInfo *info,
                                         const gchar *uid);

Add a uid from the updated list, used to generate a changeset diff.

#### Parameters

info | a CamelFolderChangeInfo |
uid | a uid |

### camel_folder_change_info_add_update_list ()

    void
    camel_folder_change_info_add_update_list
                                   (CamelFolderChangeInfo *info,
                                    const GPtrArray *list);

Add a list of uid's from the updated list.

#### Parameters

info | a CamelFolderChangeInfo |
list | a list of uids. | [element-type utf8][transfer container]

### camel_folder_change_info_build_diff ()

    void
    camel_folder_change_info_build_diff (CamelFolderChangeInfo *info);

Compare the source uid set to the updated uid set and generate the differences into the added and removed lists.

#### Parameters

info | a CamelFolderChangeInfo |

### camel_folder_change_info_cat ()

    void
    camel_folder_change_info_cat (CamelFolderChangeInfo *info,
                                  CamelFolderChangeInfo *src);

Concatenate one change info onto antoher. Can be used to copy them too.

#### Parameters

info | a CamelFolderChangeInfo to append to |
src | a CamelFolderChangeInfo to append from |

### camel_folder_change_info_add_uid ()

    void
    camel_folder_change_info_add_uid (CamelFolderChangeInfo *info,
                                      const gchar *uid);

Add a new uid to the changeinfo.

#### Parameters

info | a CamelFolderChangeInfo |
uid | a uid |

### camel_folder_change_info_remove_uid ()

    void
    camel_folder_change_info_remove_uid (CamelFolderChangeInfo *info,
                                         const gchar *uid);

Add a uid to the removed uid list.

#### Parameters

info | a CamelFolderChangeInfo |
uid | a uid |

### camel_folder_change_info_change_uid ()

    void
    camel_folder_change_info_change_uid (CamelFolderChangeInfo *info,
                                         const gchar *uid);

Add a uid to the changed uid list.

#### Parameters

info | a CamelFolderChangeInfo |
uid | a uid |

### camel_folder_change_info_recent_uid ()

    void
    camel_folder_change_info_recent_uid (CamelFolderChangeInfo *info,
                                         const gchar *uid);

Add a recent uid to the changedinfo. This will also add the uid to the uid_filter array for potential filtering

#### Parameters

info | a CamelFolderChangeInfo |
uid | a uid |

## Types and Values

### CAMEL_FOLDER_ERROR

    #define             CAMEL_FOLDER_ERROR

Since: 2.32

### enum CamelFolderError

#### Members

CAMEL_FOLDER_ERROR_INVALID | a generic error about invalid operation with the folder |
CAMEL_FOLDER_ERROR_INVALID_STATE | the folder is in an invalid state |
CAMEL_FOLDER_ERROR_NON_EMPTY | the folder is not empty |
CAMEL_FOLDER_ERROR_NON_UID | requested UID is not a UID |
CAMEL_FOLDER_ERROR_INSUFFICIENT_PERMISSION | insufficient permissions for the requested operation |
CAMEL_FOLDER_ERROR_INVALID_PATH | the folder path is invalid |
CAMEL_FOLDER_ERROR_INVALID_UID | requested UID is invalid/cannot be found |
CAMEL_FOLDER_ERROR_SUMMARY_INVALID | the folder's summary is invalid/broken |

Since: 2.32

### enum CamelFolderParamFlags

These flags extend GParamFlags. Most of the time you will use them in conjunction with `g_object_class_install_property()`.

#### Members

CAMEL_FOLDER_PARAM_PERSISTENT | The parameter is persistent, which means its value is saved to the disk between sessions. |

Since: 3.58

### enum CamelFetchType

#### Members

CAMEL_FETCH_OLD_MESSAGES | fetch old messages |
CAMEL_FETCH_NEW_MESSAGES | fetch new messages |

Since: 3.4

### struct CamelFolderQuotaInfo

    struct CamelFolderQuotaInfo {
    	gchar *name;
    	guint64 used;
    	guint64 total;

    	struct _CamelFolderQuotaInfo *next;
    };

#### Members

gchar *`name`; | name, aka identification, of the quota type |
guint64 `used`; | how many bytes is currently in use |
guint64 `total`; | what is the maximum quota to use |
struct _CamelFolderQuotaInfo *`next`; | a reference to a follwing CamelFolderQuotaInfo |

Since: 2.24

## Property Details

### The `“description”` property

      “description”              char *

The folder's description.

Owner: CamelFolder

Flags: Read / Write / Construct

Default value: NULL

### The `“display-name”` property

      “display-name”             char *

The folder's display name.

Owner: CamelFolder

Flags: Read / Write / Construct

Default value: NULL

### The `“full-name”` property

      “full-name”                char *

The folder's fully qualified name.

Owner: CamelFolder

Flags: Read / Write / Construct

Default value: NULL

### The `“mark-seen”` property

      “mark-seen”                CamelThreeState

A CamelThreeState persistent option of the folder, which can override global option to mark messages as seen after certain interval.

Owner: CamelFolder

Flags: Read / Write / Construct

Default value: CAMEL_THREE_STATE_INCONSISTENT

Since: 3.32

### The `“mark-seen-timeout”` property

      “mark-seen-timeout”        int

Timeout in milliseconds for marking messages as seen.

Owner: CamelFolder

Flags: Read / Write / Construct

Allowed values: >= 0

Default value: 1500

Since: 3.32

### The `“parent-store”` property

      “parent-store”             CamelStore *

The CamelStore to which the folder belongs.

Owner: CamelFolder

Flags: Read / Write / Construct Only

## Signal Details

### The `“changed”` signal

    void
    user_function (CamelFolder           *folder,
                   CamelFolderChangeInfo *changes,
                   gpointer               user_data)

#### Parameters

folder | the CamelFolder which emitted the signal |
changes | the CamelFolderChangeInfo with the list of changes |
user_data | user data set when the signal handler was connected. |

Flags: Run First

### The `“deleted”` signal

    void
    user_function (CamelFolder *folder,
                   gpointer     user_data)

#### Parameters

folder | the CamelFolder which emitted the signal |
user_data | user data set when the signal handler was connected. |

Flags: Run First

### The `“renamed”` signal

    void
    user_function (CamelFolder *folder,
                   char        *old_name,
                   gpointer     user_data)

#### Parameters

folder | the CamelFolder which emitted the signal |
old_name | the previous folder name |
user_data | user data set when the signal handler was connected. |

Flags: Run First