Control Web Panel

WebPanel => E-Mail => Topic started by: idovecer on December 16, 2022, 08:13:30 AM

Title: NewBackup backup vmail problem
Post by: idovecer on December 16, 2022, 08:13:30 AM
Today I tried just to recover some emails and I noticed that all files (email) files have date created not when email is received and created but date of backup?

Now when you restore all this emails, they are sorted in email client as they are received at the day of backup.

Is there any solution to repair this?
Tnx.
Title: Re: NewBackup backup vmail problem
Post by: idovecer on December 16, 2022, 08:15:57 AM
Now I see that there is possible solution, all email files has timestamp in the filename.
I will try to solve this out somehow.
Title: Re: NewBackup backup vmail problem
Post by: idovecer on December 16, 2022, 09:38:25 AM
Simple solution with bash script,
just start this script in every folder:

Code: [Select]
#/bin/bash
#starting with 1* because all filenames starts with 1
for file in 1*;
do
    echo "Processing $file.."
   
# getting timestamp from filename, first 10 characters
tstamp=$(echo "${file}" | cut -c1-10)

# set timestamp to file
touch -d @"$tstamp" "$file"
done


Title: Re: NewBackup backup vmail problem
Post by: iraqiboy90 on December 22, 2022, 05:22:34 PM
This is an interesting problem. Thanks for sharing this with us. I will keep this in mind if I ever need to manually import backed up mail
Title: Re: NewBackup backup vmail problem
Post by: PakPos on December 25, 2022, 03:15:55 AM
hope staff will update soon
Title: Re: NewBackup backup vmail problem
Post by: overseer on March 09, 2023, 09:29:24 AM
Did you file a bug report? From what I gather, only a few staff members are active in this forum, so posting a problem here and expecting staff to act on it is a bit like shouting into the wind.