summaryrefslogtreecommitdiff
path: root/db.h
diff options
context:
space:
mode:
Diffstat (limited to 'db.h')
-rw-r--r--db.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/db.h b/db.h
index bef7d4a3..3231f8a2 100644
--- a/db.h
+++ b/db.h
@@ -945,13 +945,14 @@ int db_findmailbox(const char *name, u64_t user_idnr,
* returns and needs to be free-d by caller
* \param nchildren number of mailboxes in children
* \param only_subscribed only search in subscribed mailboxes.
+ * \param mb pointer to a list of mailbox_t to be filled.
* \return
* - -1 on failure
* - 0 on success
*/
int db_findmailbox_by_regex(u64_t owner_idnr, const char *pattern,
u64_t ** children, unsigned *nchildren,
- int only_subscribed);
+ int only_subscribed, mailbox_t ** mb);
/**
* \brief get info on a mailbox. Info is filled in in the
* mailbox_t struct.
@@ -1334,4 +1335,7 @@ int db_count_replycache(timestring_t lasttokeep, u64_t *affected_rows);
/* get driver specific SQL snippets */
const char * db_get_sql(sql_fragment_t frag);
+int db_getmailbox_list_by_regex(u64_t owner_idnr, const char *pattern,
+ u64_t ** children, unsigned *nchildren,
+ int only_subscribed, mailbox_t **mb);
#endif