"got too little data" error
Example error message:
FETCH for mailbox Testing UID 2 got too little data: 56993 vs 59091
Solution
If you get this error message after upgrading dovecot (in my case from 1.0rc15 to 1.0.13), try deleting the dovecot.index.cache files. They will be regenerated automatically.
The following commands will delete all dovecot.index.cache files in the current directory and all its sub-directories:
find -name 'dovecot.index.cache' -print0 | xargs -0 rm
Dovecot v1.1 fixes this error automatically by deleting dovecot.index.cache file itself.
Reference
http://www.dovecot.org/list/dovecot/2008-January/027821.html (Timo Sirainen, Fri, 04 Jan 2008 13:29:05 -0800)