NewBackup backup vmail problem

Started by idovecer, December 16, 2022, 08:13:30 AM

Previous topic - Next topic

idovecer

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.

idovecer

Now I see that there is possible solution, all email files has timestamp in the filename.
I will try to solve this out somehow.

idovecer

Simple solution with bash script,
just start this script in every folder:


#/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



iraqiboy90

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

PakPos


overseer

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.