If there was a large copy (or append) into the folder which was not finished, those files could be created. The email files are created first, then the index and cache are updated afterwards. If the server crashes, or Cyrus is shut down, then the command doesn't complete - but the program isn't there to clean up after itself. Regards, Bron. On Wed, Sep 17, 2014, at 01:29 AM, Marcus Schopen wrote: > Hi, > > Am Montag, den 15.09.2014, 20:08 +0200 schrieb Marcus Schopen: > > Or another way: just delete user.userxyz.sent_mail subfolder using > > cyradm. The sent_mail folder will be moved into a subfolder under > > u/DELETED/user/userxyz/sent_mail/ and will only keep message 1., because > > all other emails are not know by the cyrus databases in > > user.userxyz.sent_mail. This would solve the chk_cyrus error messages. > > But what happens to hardlink 1807. then? Will cyrus keep these mails in > > "Gesendete Elemente" then? > > I renamed the "sent_mail" folder to "sent_mail_test" (using > Thunderbird). This action removed all UIDs in the filesystem inside the > sent_folder, which were not known by cyrus.* databases in the > "sent_mail" folder. Afterwards I renamed the folder back to "sent_mail". > The only UID which wasn't deleted is UID 1., which is correct, because > this UID was created inside the sent_mail after the users > copy/movement/whatever session, first new email/UID. A following > chk_cyrus didn't come up with errors. :) > > Checking files: > > # ls -li /var/spool/cyrus/mail/u/user/userxyz/sent_mail/1766. > No such file or directory > -> good, deleted by my renaming > > #ls -li /var/spool/cyrus/mail/u/user/userxyz/Gesendete\ Elemente/1807. > 10897103 -rw------- 3 cyrus mail 5520 Sep 9 > 23:08 /var/spool/cyrus/mail/u/user/userxyz/Gesendete Elemente/1807. > -> good, still there > > # ls > -li /var/spool/cyrus/mail/u/DELETED/user/userxyz/sent_mail/54101FA9/1766. > 10897103 -rw------- 3 cyrus mail 5520 Sep 9 > 23:08 /var/spool/cyrus/mail/u/DELETED/user/userxyz/sent_mail/54101FA9/1766. > -> good, will be hopefully deleted after 7 days be nightly expunge > > Question still is what caused this inconsistence between cyrus.* > databases and fileystem, how can that happen? > > Cheers > Marcus > > > ---- > Cyrus Home Page: http://www.cyrusimap.org/ > List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ > To Unsubscribe: > https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus -- Bron Gondwana brong@xxxxxxxxxxx ---- Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus