Mercurial > dovecot > original-hg > dovecot-1.2
comparison src/plugins/virtual/virtual-storage.c @ 8483:b12705704329 HEAD
Optimized searching with virtual mailboxes.
Instead of going through the messages in the virtual mailbox order, go them
through one mailbox at a time and in ascending message order within that
mailbox.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 23 Nov 2008 02:40:09 +0200 |
parents | d4eab639c253 |
children | db78eab2ba5d |
comparison
equal
deleted
inserted
replaced
8482:1ff129ed866a | 8483:b12705704329 |
---|---|
22 MODULE_CONTEXT(obj, virtual_mailbox_list_module) | 22 MODULE_CONTEXT(obj, virtual_mailbox_list_module) |
23 | 23 |
24 extern struct mail_storage virtual_storage; | 24 extern struct mail_storage virtual_storage; |
25 extern struct mailbox virtual_mailbox; | 25 extern struct mailbox virtual_mailbox; |
26 | 26 |
27 struct virtual_storage_module virtual_storage_module = | |
28 MODULE_CONTEXT_INIT(&mail_storage_module_register); | |
27 static MODULE_CONTEXT_DEFINE_INIT(virtual_mailbox_list_module, | 29 static MODULE_CONTEXT_DEFINE_INIT(virtual_mailbox_list_module, |
28 &mailbox_list_module_register); | 30 &mailbox_list_module_register); |
29 | 31 |
30 static int | 32 static int |
31 virtual_list_delete_mailbox(struct mailbox_list *list, const char *name); | 33 virtual_list_delete_mailbox(struct mailbox_list *list, const char *name); |
582 index_storage_get_expunged_uids, | 584 index_storage_get_expunged_uids, |
583 virtual_mail_alloc, | 585 virtual_mail_alloc, |
584 index_header_lookup_init, | 586 index_header_lookup_init, |
585 index_header_lookup_ref, | 587 index_header_lookup_ref, |
586 index_header_lookup_unref, | 588 index_header_lookup_unref, |
587 index_storage_search_init, | 589 virtual_search_init, |
588 index_storage_search_deinit, | 590 virtual_search_deinit, |
589 index_storage_search_next_nonblock, | 591 virtual_search_next_nonblock, |
590 index_storage_search_next_update_seq, | 592 virtual_search_next_update_seq, |
591 NULL, | 593 NULL, |
592 NULL, | 594 NULL, |
593 NULL, | 595 NULL, |
594 NULL, | 596 NULL, |
595 NULL, | 597 NULL, |