[Dovecot] Virtual - thread refs for labeled message

Timo Sirainen tss at iki.fi
Sun Mar 31 11:48:16 EEST 2013

On 28.3.2013, at 17.35, Łukasz <l.chelchowski at eurocar.pl> wrote:

> Hi
> I hope you will understand my problem.
> I want to make virtual folder called "Virtual/label1-threads". This folder should have:
> 1. messages labeled fe. $label1 from INBOX
> and
> 2. messages from Sent folder inthread refs with those labeled.
> message1 <-- $label1 INBOX
> |----message2 <- Sent
> ------|-----message3 <- INBOX
> .....
> Can anyone help me with this?

  inthread refs x-mailbox INBOX keyword $label1

Unfortunately currently you'll currently have trouble automatically removing any threads if you unset the $label1. You'd have to delete the dovecot.index* files so it gets rebuilt. Or alternatively use INDEX=MEMORY for the virtual mailbox so it never gets saved, but that's of course slower.

More information about the dovecot mailing list