Mercurial > dovecot > core-2.2
changeset 10737:e4a8cc98fd15 HEAD
virtual: Implement required new methods.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 15 Feb 2010 15:05:50 +0200 |
parents | c5cbaca43811 |
children | 843a9d68f2f5 |
files | src/plugins/virtual/virtual-storage.c |
diffstat | 1 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/virtual/virtual-storage.c Mon Feb 15 12:00:08 2010 +0200 +++ b/src/plugins/virtual/virtual-storage.c Mon Feb 15 15:05:50 2010 +0200 @@ -298,6 +298,15 @@ return -1; } +static int +virtual_mailbox_get_guid(struct mailbox *box, + uint8_t guid[MAIL_GUID_128_SIZE] ATTR_UNUSED) +{ + mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE, + "Virtual mailboxes have no GUIDs"); + return -1; +} + static void virtual_notify_changes(struct mailbox *box ATTR_UNUSED) { /* FIXME: maybe some day */ @@ -445,13 +454,13 @@ index_storage_mailbox_enable, virtual_mailbox_open, virtual_mailbox_close, - NULL, + index_storage_mailbox_free, virtual_mailbox_create, virtual_mailbox_update, index_storage_mailbox_delete, index_storage_mailbox_rename, index_storage_get_status, - NULL, + virtual_mailbox_get_guid, NULL, NULL, virtual_storage_sync_init,