[Dovecot] search gives variable/different results

W. de Hoog wdehoog at exalondelft.nl
Sun Dec 22 19:58:25 EET 2013


Hi,

Still having search troubles. I expect to get 9 results in two 
mailboxes, 3 in the first one and six in de second one. Total mailboxes 
in shared/ is around 1100.

doveadm search mailbox "shared/Products/VIP*"  TO stromvers
-> all expected results

doveadm search mailbox "shared/Products/VIP/*"  TO stromvers
-> first 3 ok, from last box only the last 3.

doveadm search mailbox "shared/Products*"  TO stromvers
-> sometimes last 2 from 1st mailbox, last 4 from 2nd mailbox
    sometimes no results at all

doveadm search mailbox "shared/Products/*"  TO stromvers
-> some results from 2nd mailbox

Is the search syntax O use wrong?

I added some printf statements to see what is going on. It seems to walk 
all mailboxes. Unfortunately I don't know how to have doveadm use the 
lib21_fts_squat_plugin.so I build. It always loads the one from /usr/libs.

> $ dovecot -n
> # 2.2.9 (5c170e0786f3): /etc/dovecot/dovecot.conf
> # OS: Linux 3.12.0-031200-generic x86_64 Ubuntu 13.10
> auth_verbose = yes
> disable_plaintext_auth = no
> log_path = /var/log/dovecot.log
> mail_debug = yes
> mail_plugins = fts fts_squat
> mail_privileged_group = mail
> namespace {
>    hidden = yes
>    inbox = yes
>    list = no
>    location = mbox:~/mail:INBOX=/var/mail/%u
>    prefix = "#mbox/"
>    separator = /
> }
> namespace {
>    list = yes
>    location = sdbox:/home/imapshared-sdbox
>    prefix = shared/
>    separator = /
>    subscriptions = no
>    type = public
> }
> namespace inbox {
>    location = sdbox:~/sdboxmail
>    mailbox Drafts {
>      special_use = \Drafts
>    }
>    mailbox Junk {
>      special_use = \Junk
>    }
>    mailbox Sent {
>      special_use = \Sent
>    }
>    mailbox "Sent Messages" {
>      special_use = \Sent
>    }
>    mailbox Trash {
>      special_use = \Trash
>    }
>    prefix =
>    separator = /
> }
> passdb {
>    driver = pam
> }
> plugin {
>    fts = squat
>    fts_autoindex = yes
>    fts_squat = partial=4 full=10
>    sieve = ~/.dovecot.sieve
>    sieve_dir = ~/sieve
> }
> protocols = " imap"
> ssl_cert = </etc/ssl/certs/dovecot.pem
> ssl_key = </etc/ssl/private/dovecot.pem
> userdb {
>    driver = passwd
> }
> verbose_ssl = yes
> protocol imap {
>    imap_client_workarounds = tb-extra-mailbox-sep tb-lsub-flags
> }
>


-- 
Willem-Jan de Hoog


More information about the dovecot mailing list