Author Topic: NewBackup backup vmail problem  (Read 1893 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
NewBackup backup vmail problem
« 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.

Offline
*
Re: NewBackup backup vmail problem
« Reply #1 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.

Offline
*
Re: NewBackup backup vmail problem
« Reply #2 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



Offline
***
Re: NewBackup backup vmail problem
« Reply #3 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

Offline
***
Re: NewBackup backup vmail problem
« Reply #4 on: December 25, 2022, 03:15:55 AM »
hope staff will update soon

Offline
****
Re: NewBackup backup vmail problem
« Reply #5 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.