Author Topic: change mail display date  (Read 1991 times)

Offline fejame

  • Newbie
  • *
  • Posts: 1
change mail display date
« on: August 03, 2023, 06:50:44 PM »
After a migration, the emails are seen with the backup copy date, not the actual date.

How can I change the display date of the email?

Offline Dmitry42

  • Full Member
  • ***
  • Posts: 232
Re: change mail display date
« Reply #1 on: August 03, 2023, 08:21:03 PM »
not sure, but I think - its not rounsdcube deals. I think its backup/restore results.

When I do migrate - I use utils who directly copy messages from old imap to new imap and do date correction on fly.

Offline ninad

  • Newbie
  • *
  • Posts: 9
Re: change mail display date
« Reply #2 on: September 18, 2023, 01:48:47 AM »
How did you take the backup?

While taking backup, you need to preserve the time stamp.
and while restoring, you need to do the same.

For example.

Mail dir = /home/xyz/mail

for backup: tar -czpf xyz-mail.tgz /home/xyz/mail
for restore: tar -xzpf xyz-mail.tgz

Here, the option -p is used to preserve the timestamp and ownership.