+/**
+ * modest_tny_folder_has_subfolder_with_name:
+ * @folder: a #TnyFolderStore
+ * @name: the name to check into subfolders.
+ * @nonstrict: if TRUE, also match on different-case and current-locale
+ * display versions of the name
+ *
+ * This function check if subfolders of @folder has the same
+ * name as @name.
+ *
+ * Returns: TRUE if some subfolder has the name @name.
+ **/
+gboolean modest_tny_folder_has_subfolder_with_name (TnyFolderStore *folder,
+ const gchar *name,
+ gboolean nonstrict);
+
+/**
+ * modest_tny_folder_is_ancestor:
+ * @folder: a #TnyFolder
+ * @ancestor: a #TnyFolderStore
+ *
+ * This function checks if @ancestor is an ancestor of @folder
+ *
+ * Returns: TRUE if @ancestor is an ancestor of @folder, FALSE
+ * otherwise
+ **/
+gboolean modest_tny_folder_is_ancestor (TnyFolder *folder,
+ TnyFolderStore *ancestor);
+