On Thu, 2006-03-09 at 20:21 +0100, Grobian wrote:
I'm using dovecot 1.0_beta3 on Gentoo Linux, and am experiencing a problem of what I call 'phantom mail'. This problem I have for a long time (pre 1.0), but at the moment I'm using 1.0_beta3 and the problem still is in there.
The problem was that STATUS command synchronized the index and maildir, so that the next time mailbox was opened Dovecot thought the new/ directory was already synchronized so it didn't bother looking into it. But that also meant that it didn't move the mails to cur/ and their recent flag state was kept.. Fixed now in CVS, and upcoming beta4.
# awk '{ print $2 }' dovecot-uidlist | sort > tmp.uids # ls cur | sort | diff -u - tmp.uids --- - 2006-03-08 17:45:26.428168000 +0100 +++ tmp.uids 2006-03-08 17:45:19.000000000 +0100 @@ -47,4 +47,5 @@ 1141340181.H111425P8973.hermes.orakel.ods.org:2,S 1141387968.P13010Q0M35974.hermes:2,S 1141528391.H769531P12886.hermes.orakel.ods.org:2,S -1141830301.H349821P23427.hermes.orakel.ods.org:2,S +1141544380 +1141830301.H349821P23427.hermes.orakel.ods.org
It seems the dovecot uidlist doesn't have the right name for the file on disk,
This is done on purpose. The filenames keep changing and only the base filename is important. Dovecot just tries to optimize file opening a bit by keeping the last known full filename in the dovecot-uidlist file.