Bug#776094: dovecot-imapd: corrupts mailbox after trying to retrieve it (fwd)

Santiago Vila sanvila at unex.es
Thu Feb 19 21:34:07 UTC 2015


On Sun, 15 Feb 2015, Timo Sirainen wrote:

> On 14 Feb 2015, at 16:23, Santiago Vila <sanvila at unex.es> wrote:
> 
> > I wrote about this three weeks ago but got no answer. I'm going to
> > officially "forward" the Debian bug this time, with all the details.
> > 
> > The test case is just 840 bytes long. Please give it a try.

[ Small correction: It's really 3873 bvtes long, uncompressed ].

> ..
> > Package: dovecot-imapd
> > Version: 1:2.2.13-11
> > Severity: serious
> 
> I can't reproduce with latest Dovecot hg.

In such case we would love to know what is the commit that fixed this,
so that we can apply it to the 2.2.13 version in Debian. We have frozen
the distribution as we are about to release jessie as Debian 8, so
no new upstream releases are allowed anymore.

> But just in case it's still not fixed, there are two important things:
> 
> 1) Send your doveconf -n output, since there are some settings that can affect this

Nothing special. The default configuration from the Debian package.
The bug may be reproduced without touching any file in /etc at all.
This is the result of "doveconf -n":

# 2.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.16.0-4-amd64 x86_64 Debian 8.0 
mail_location = mbox:~/mail:INBOX=/var/mail/%u
namespace inbox {
  inbox = yes
  location = 
  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 = 
}
passdb {
  driver = pam
}
protocols = " imap"
ssl = no
userdb {
  driver = passwd
}


> 2) rm -rf ~/mail/.imap/inbox-b before testing to make sure indexes don't cause this problem.

Yes, I did that. In fact, I checked that this happens on a freshly installed virtual machine,
i.e. no ~/mail/.imap at all.


More information about the dovecot mailing list