Christoph Bußenius
2012-Feb-29 09:31 UTC
[Dovecot] doveadm fetch prints duplicate results in 2.1
Hi,
when the private namespace has "prefix = INBOX." and you use doveadm
fetch to search for "mailbox INBOX", then it prints every message
twice:
# doveadm fetch -u testuser 'mailbox uid guid' mailbox INBOX
mailbox: INBOX
uid: 1
guid: 1757c403a4ec4d4fbf040000463889b5
mailbox: INBOX
uid: 1
guid: 1757c403a4ec4d4fbf040000463889b5
Without "prefix = INBOX." in the configuration, the messages are only
printed once. In 2.0, they were never printed twice.
doveconf -n
# 2.1.1: /usr/local/dovecot/etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-35-server x86_64 Ubuntu 10.04.4 LTS
disable_plaintext_auth = no
mail_gid = vmail
mail_location = mdbox:~/mdbox
mail_plugins = acl
mail_uid = vmail
namespace {
inbox = yes
location prefix = INBOX.
separator = .
}
passdb {
args = scheme=CRYPT username_format=%u
/usr/local/dovecot/etc/dovecot/users
driver = passwd-file
}
protocols = imap
service auth {
unix_listener auth-userdb {
group = vmail
mode = 0660
}
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
args = username_format=%u /usr/local/dovecot/etc/dovecot/users
driver = passwd-file
}
protocol imap {
mail_plugins = acl imap_acl
}
Cheers,
Christoph
--
Christoph Bu?enius
Rechnerbetriebsgruppe der Fakult?ten Informatik und Mathematik
Technische Universit?t M?nchen
+49 89-289-18519 <> Raum 00.05.055 <> Boltzmannstr. 3 <>
Garching
Christoph Bußenius
2012-Mar-03 12:33 UTC
[Dovecot] doveadm fetch prints duplicate results in 2.1
On 02/29/2012 10:31 AM, Christoph Bu?enius wrote:> when the private namespace has "prefix = INBOX." and you use doveadm > fetch to search for "mailbox INBOX", then it prints every message twice:Apparently the bug has been introduced with this changeset: changeset: 14112:f5353573d3a0 user: Timo Sirainen <tss at iki.fi> date: Sun Feb 12 02:50:49 2012 +0200 summary: lib-storage: Added MAILBOX_LIST_ITER_LIST_PREFIXES flag. http://hg.dovecot.org/dovecot-2.1/rev/f5353573d3a0 Cheers, Christoph
Timo Sirainen
2012-Mar-04 12:33 UTC
[Dovecot] doveadm fetch prints duplicate results in 2.1
On 3.3.2012, at 14.33, Christoph Bu?enius wrote:> On 02/29/2012 10:31 AM, Christoph Bu?enius wrote: >> when the private namespace has "prefix = INBOX." and you use doveadm >> fetch to search for "mailbox INBOX", then it prints every message twice: > > Apparently the bug has been introduced with this changeset: > > changeset: 14112:f5353573d3a0 > user: Timo Sirainen <tss at iki.fi> > date: Sun Feb 12 02:50:49 2012 +0200 > summary: lib-storage: Added MAILBOX_LIST_ITER_LIST_PREFIXES flag.Fixed: http://hg.dovecot.org/dovecot-2.1/rev/bbe6b6c2ee99