[Dovecot] Virtual mailboxes not always up to date?

Nikita Koshikov koshikov at gmail.com
Mon Nov 9 09:21:42 EET 2009


On Mon, 09 Nov 2009 08:03:59 +0800
Patrick Nagel <patrick.nagel at star-group.net> wrote:

> Hi,
> 
> I have been experimenting with the Virtual mailboxes plugin [1] recently.
> 
> This is my setup: the following dovecot-virtual file exists in a virtual
> mailbox called "todo":
> 
> ------ dovecot-virtual ------
> *
> -Trash
> -Trash/*
> -Spam
> -Spam/*
>   OR KEYWORD $TODO KEYWORD todo
> -----------------------------
> 
> so if any mail in any mailbox except Trash+Spam has the keyword "$TODO"
> (that's what KMail sets when you mark a message as "action item") or "todo"
> (that's what Thunderbird sets when you put the Todo tag on a message), it
> should be shown in that 'todo' virtual mailbox.
> 
> This works for the first time after I edit the dovecot-virtual file and
> then access the virtual mailbox (all mails I expect to be shown in the todo
> mailbox are there) - but further accesses always show the same content,
> even though I removed the keyword from one of the mails (and I can confirm
> that the keyword has actually been removed by dovecot, since the filename
> doesn't contain the letter corresponding to the keyword anymore).
> 
> It seems that changing the dovecot-virtual file triggers the execution of
> the "search program" - but shouldn't simply accessing the virtual mailbox
> also trigger it? Or is there a (undocumented?) timeout between search
> program executions?

> namespace:
>   type: private
>   separator: .
>   prefix: virtual.
>   location: virtual:~/.maildir/virtual
>   list: yes
>   subscriptions: yes

Try to add :INDEX=MEMORY to location setting.


More information about the dovecot mailing list