Hi
Just wondering if Virtual Folder functionality was on the roadmap for Dovecot?
Thanks
James Turnbull
-- James Turnbull james@lovedthanlost.net
Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/)
Hardening Linux (http://www.amazon.com/gp/product/1590594444/)
PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40)
Marcus Rueckert wrote:
On 2006-09-25 12:37:00 +1000, James Turnbull wrote:
Just wondering if Virtual Folder functionality was on the roadmap for Dovecot?
what do you mean by virtual folders?
darix
Sorry - should have been clearer - server-side virtual folders - IMAP4 vfolders.
Regards
James Turnbull
-- James Turnbull james@lovedthanlost.net
Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/)
Hardening Linux (http://www.amazon.com/gp/product/1590594444/)
PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40)
On Mon, 2006-09-25 at 12:37 +1000, James Turnbull wrote:
Hi
Just wondering if Virtual Folder functionality was on the roadmap for Dovecot?
I've been thinking about implementing them once in a while. They'd be nice to have, so maybe some day when I have more time.
I don't think this would necessarily even be difficult to implement, so if anyone wants to try to do it I could help. I think the way it should work is:
- create a new vfolder mail storage backend
- create dovecot index files for each vfolder. for each mail remember the original mailbox ID and message UID
- keep track of all the mailboxes that match the vfolder rule
- in storage syncing code check which mailboxes have changed, open those mailboxes and sync the changes from them to the vfolder
- the syncing could be faster if it was done by looking at the transaction log file, but this is just an optimization
Currently there doesn't exist mailbox ID <-> name mapping, but I'll soon implement a mailbox list index into CVS HEAD which has it. The mailbox list index also makes it faster to check which mailboxes have changed.
All of this should be possible to be implemented with a plugin.
On Mon, 2006-09-25 at 12:18 +0300, Timo Sirainen wrote:
- the syncing could be faster if it was done by looking at the transaction log file, but this is just an optimization
And even better optimization would be if the vfolder plugin tracked all the changes that were done in other mailboxes and applied the changes immediately. That way we could have a fast virtual mailboxes that contained all mails in all mailboxes having (or not having) a specific flag (eg. Trash and Unseen vfolders).
participants (3)
-
James Turnbull
-
Marcus Rueckert
-
Timo Sirainen