I have a mail relay server. Customers are using our server to send emails.
The server stores all outgoing and incoming emails in a mailbox folder "/usr/local/atmail/users", the folder structure will be like this:
- a
---- l
------
[email protected]-------- cur
-------- maildirsize
-------- new
-------- tmp
- b
---- o
------
[email protected]-------- cur
-------- maildirsize
-------- new
-------- tmp
One day, bob configured an incorrect filter in which the emails were sent to the wrong folder, so now the folder structure for
[email protected] becomes like this:
- b
---- o
------
[email protected]-------- cur
-------- INBOX.invoices
---------- cur
---------- maildirsize
---------- new
---------- tmp
-------- maildirsize
-------- new
-------- tmp
All the new emails are now stored in INBOX.invoices/new.
My question is, is it safe to move all of the emails stored in that folder to
[email protected]/new?
I've solved this and I'd like to share what I did here, just in case it can be helpful to anyone.
I decided to zip the
[email protected] folder and then started moving 1 email, it was a success. Then I continued moving all the emails.
I think each of the emails is unique, so it's safe to move emails between folders in the same customer mailbox folder.