Courier IMAP problem

Discussion in 'General' started by Kira, Jan 1, 2013.

  1. Kira

    Kira Member


    I have a problem with my courier-imap (sorry if I am totally wrong here.. but, here are some geniuses around).

    Lately a user accidentally deleted all his messages from his IMAP Inbox.. since we backuped everything it was no problem to restore the backup of his mailbox.

    We recovered this directory from the backup:

    Everything works fine, except.. all his mails are showing up with a wrong "Date Received". The Webmail Interface is displaying the correct dates, so it's probably an issue with his Mail Client (Apple / iPhone).

    It seems as if the Mail Client is using the "ctime" from the filesystem. I checked some files in the cur directory, they all have the correct "mtime", but of course they all have a ctime of today.

    Is there any way to fix this? Sadly there is no possible fix on the Client side :(

    Thanks and a happy new year!
  2. till

    till Super Moderator Staff Member ISPConfig Developer


    as far as I know, the ctime of a file can not be set "manually". It is alwaysset to the date when the file is created.

    I did not had this problem yet so I dont know if there is a different way to fix the issue in courier without setting ctime.

    For future backups, you might want to check if your backup program is able to store all file permissions and dates like tar does it with:

    tar -pcfz archive.tar.gz /var/vmail

Share This Page