Hi,
When I perform a search using doveadm every time it returns different
results. For example:
$ doveadm search mailbox shared/\* TO stromvers
938ff10527d6be515f5900007b46f991 6
938ff10527d6be515f5900007b46f991 7
938ff10527d6be515f5900007b46f991 8
$ doveadm search mailbox shared/\* TO stromvers
6a8ff10527d6be515f5900007b46f991 1
6a8ff10527d6be515f5900007b46f991 3
6a8ff10527d6be515f5900007b46f991 4
938ff10527d6be515f5900007b46f991 1
938ff10527d6be515f5900007b46f991 2
938ff10527d6be515f5900007b46f991 3
938ff10527d6be515f5900007b46f991 6
938ff10527d6be515f5900007b46f991 7
938ff10527d6be515f5900007b46f991 8
$ doveadm search mailbox shared/\* TO stromvers
938ff10527d6be515f5900007b46f991 6
938ff10527d6be515f5900007b46f991 7
938ff10527d6be515f5900007b46f991 8
$ doveadm search mailbox shared/\* TO stromvers
938ff10527d6be515f5900007b46f991 7
938ff10527d6be515f5900007b46f991 8
$ doveadm search mailbox shared/\* TO stromvers
6a8ff10527d6be515f5900007b46f991 1
6a8ff10527d6be515f5900007b46f991 3
6a8ff10527d6be515f5900007b46f991 4
$ 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
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