HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Courier IMAP problem (http://www.howtoforge.com/forums/showthread.php?t=60085)

Kira 1st January 2013 21:56

Courier IMAP problem
 
Hi,

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:
/var/vmail/domain.tld/username/cur

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 Mail.app / 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!
Kira

till 2nd January 2013 08:11

Hi,

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


All times are GMT +2. The time now is 06:39.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.