On 26/08/2025 11:52, Ákos Szőts via dovecot wrote:
Hi everyone,

I noticed that if I specify the following pattern in dovecot-virtual for my Virtual/Unseen mailbox, mails in INBOX are excluded:

*
-Drafts
-Trash
-Junk
-Sent
-Virtual/*
  UNSEEN

It returns with 23 mails:

a EXAMINE Virtual/Unseen
* 23 EXISTS
* 23 RECENT
* OK [UNSEEN 1] First unseen.

But when I add INBOX additionally after "*", the number grows to 42:

a EXAMINE Virtual/Unseen
* 42 EXISTS
* 42 RECENT
* OK [UNSEEN 1] First unseen.

Is it expected that "*" doesn't include INBOX by default? As I see, the rest of the mailboxes within the same root (/) namespace are included by default.

Config:

namespace inbox {
  separator = /
  inbox = yes
  mail_path = %{home}/mail
  mail_index_path = %{home}/index/inbox

  mailbox INBOX {
    auto = subscribe
  }
  mailbox Trash {
    special_use = \Trash
    auto = subscribe
  }
  [...]
}

Dovecot version: 2.4.1.

Thank you,

Ákos

_____________


Hi Ákos

I would expect * to include INBOX and I would expect that if * and INBOX are both specified that the result would be the same as specifying only *

I would also not have expected the need to exclude "Virtual/*" and if you do need to exclude it (so * is picking up Virtual too) then that could point to some issue in the virtual configuration.

I'm basing my experience on 2.3 as I haven't tried virtual plugin on 2.4 yet.

John

_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to