I think a few people have complained about this combination being somewhat broken, resulting in bogus "cached message size wrong" errors sometimes. This fixes it: http://hg.dovecot.org/dovecot-2.0/rev/9b2931607063