[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
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@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
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@iki.fi> date: Sun Feb 12 02:50:49 2012 +0200 summary: lib-storage: Added MAILBOX_LIST_ITER_LIST_PREFIXES flag.
participants (2)
-
Christoph Bußenius
-
Timo Sirainen