We have two dovecot 1.2 instances sharing Maildirs on NFS. Indexes are local to the individual servers. Occasionally (no idea how to trigger this), the Seen flag gets lost on some messages. I've verified that actually the ``S'' is missing from the filename. I suspect something like server A caching the flags, server B setting Seen, and then server A flushing its cache for another change so overwriting what B changed. Any ideas short of switching to 2.0?
If more than one Dovecot instance is accessing the same set of mailboxes over NFS or other network filesystem, you will need to use the directors. You may as well upgrade to 2.0. On Oct 25, 2011, at 4:02 AM, Edgar Fu? wrote:> We have two dovecot 1.2 instances sharing Maildirs on NFS. Indexes are local to the individual servers. > Occasionally (no idea how to trigger this), the Seen flag gets lost on some messages. I've verified that actually the ``S'' is missing from the filename. > I suspect something like server A caching the flags, server B setting Seen, and then server A flushing its cache for another change so overwriting what B changed. > Any ideas short of switching to 2.0?
On Tue, 2011-10-25 at 13:02 +0200, Edgar Fu? wrote:> We have two dovecot 1.2 instances sharing Maildirs on NFS. Indexes are local to the individual servers. > Occasionally (no idea how to trigger this), the Seen flag gets lost on some messages. I've verified that actually the ``S'' is missing from the filename. > I suspect something like server A caching the flags, server B setting Seen, and then server A flushing its cache for another change so overwriting what B changed.That shouldn't happen because of Dovecot's indexes. Dovecot doesn't force Maildir to match its indexes. Whenever doing flag changes, it stores them as "add \Seen flag to UID 1234". Then the 'S' flag is added to the current Maildir filename without losing any other changes.