Score:0

Move emails to another folder

cn flag

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:

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:

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?

Score:0
cn flag

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.

anx avatar
fr flag
anx
Almost: depending on the mail server, simply moving files around might lose or confuse additional metadata, such as the custom IMAP flags attached while in the other folder. Always stick to the utilities recommended in the documentation of the IMAP server maintaining that maildir. In the case of Dovecot that usually means `doveadm move`
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.