test-mailbox.c revision d3280fe317a4598c0868cc440e7a1191c06d0db3
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3Timo Sirainen/* Copyright (c) 2009-2010 Dovecot authors, see the included COPYING file */
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Boschstatic bool test_mailbox_is_readonly(struct mailbox *box ATTR_UNUSED)
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Boschstatic bool test_mailbox_allow_new_keywords(struct mailbox *box ATTR_UNUSED)
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Boschstatic int test_mailbox_enable(struct mailbox *box,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Boschstatic int test_mailbox_open(struct mailbox *box ATTR_UNUSED)
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Boschstatic void test_mailbox_close(struct mailbox *box ATTR_UNUSED)
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch const struct mailbox_update *update ATTR_UNUSED,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE,
45324f1eafa565dbc65e4dd335de9507dead55e6Timo Sirainen "Test mailbox creation isn't supported");
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch const struct mailbox_update *update ATTR_UNUSED)
833bed942977673526c72e79bccc09314fc57104Phil Carmody mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch "Test mailbox update isn't supported");
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Boschstatic int test_mailbox_delete(struct mailbox *box)
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch "Test mailbox delete isn't supported");
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Boschstatic int test_mailbox_rename(struct mailbox *src,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch mail_storage_set_error(src->storage, MAIL_ERROR_NOTPOSSIBLE,
1e9296de32c9ddda40f33c06556cd568ddadf71fTimo Sirainen "Test mailbox rename isn't supported");
833bed942977673526c72e79bccc09314fc57104Phil Carmodystatic int test_mailbox_get_status(struct mailbox *box ATTR_UNUSED,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Boschtest_mailbox_sync_next(struct mailbox_sync_context *ctx ATTR_UNUSED,
14bd2410de3a0261d9c53c6120915027262216bdTimo Sirainen struct mailbox_sync_rec *sync_rec_r ATTR_UNUSED)
9f8cef4cbc49797053c343209ea13022fdbc5a63Stephan Boschtest_mailbox_sync_deinit(struct mailbox_sync_context *ctx,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Boschstatic void test_mailbox_notify_changes(struct mailbox *box ATTR_UNUSED)
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Boschtest_mailbox_transaction_begin(struct mailbox *box,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch ctx = i_new(struct mailbox_transaction_context, 1);
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Boschtest_mailbox_transaction_rollback(struct mailbox_transaction_context *t)
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Boschtest_mailbox_transaction_commit(struct mailbox_transaction_context *t,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch struct mail_transaction_commit_changes *changes_r)
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Boschtest_mailbox_search_init(struct mailbox_transaction_context *t,
85f3bd5926fff0e70b6d259a5c8074bd8cdeb9adTimo Sirainen const enum mail_sort_type *sort_program ATTR_UNUSED)
564e117d86ce5b659f9b9570edddc566f9ebb5dfStephan Boschstatic int test_mailbox_search_deinit(struct mail_search_context *ctx)
93ed69606237a08623f8294c060fa148880058f8Timo Sirainentest_mailbox_search_next_nonblock(struct mail_search_context *ctx ATTR_UNUSED,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Boschtest_mailbox_search_next_update_seq(struct mail_search_context *ctx ATTR_UNUSED)
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Boschtest_mailbox_save_alloc(struct mailbox_transaction_context *t)
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Boschtest_mailbox_save_begin(struct mail_save_context *ctx ATTR_UNUSED,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Boschtest_mailbox_save_continue(struct mail_save_context *ctx ATTR_UNUSED)
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Boschtest_mailbox_save_finish(struct mail_save_context *ctx ATTR_UNUSED)
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Boschtest_mailbox_save_cancel(struct mail_save_context *ctx ATTR_UNUSED)
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Boschtest_mailbox_copy(struct mail_save_context *ctx ATTR_UNUSED,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Boschstatic bool test_mailbox_is_inconsistent(struct mailbox *box ATTR_UNUSED)
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Boschtest_mailbox_alloc(struct mail_storage *storage, struct mailbox_list *list,
564e117d86ce5b659f9b9570edddc566f9ebb5dfStephan Bosch pool = pool_alloconly_create("test mailbox", 1024);