Re: [Dovecot] Smart boxes

2010-10-26 Thread Stephan Bosch

On 10/26/2010 11:58 PM, Marcelo Salhab Brogliato wrote:

What do you think about it? Is there a simple way?
If it is a cool feature, I'll develop it and post the plugin here.


It's cool alright, but not a very novel idea. :) You should be able to 
achieve just what you want with the virtual plugin:


http://wiki2.dovecot.org/Plugins/Virtual


Regards,

Stephan.



[Dovecot] Smart boxes

2010-10-26 Thread Marcelo Salhab Brogliato
Hi,
I'm using dovecot as IMAP server.
I access my mails trough Mail (Mac client), iPhone and webmail.
In Mail I use a smartbox that shows all my unread messages, no matter where
it is.
I really want this feature at my iPhone, so I'm thinking about developing a
plugin that will create the smart unread box and follow these rules:
- Every new mail arrived, it will create a hard link to directory
.smart.unread (in case of Maildir);
- Every mark as unread, it will create a hard link;
- Every mark as read, it will remove the hard link;
- Every mail delete, it will remove all files with same inode.

This way, a smartbox with all unread messages will be available into
webmail, iPhone and every IMAP client.

What do you think about it? Is there a simple way?
If it is a cool feature, I'll develop it and post the plugin here.

Regards,
Marcelo