Email message file naming scheme
-
Hello,
We just did MDaemon migration and missed some of the files.
We are trying put those missing files back but we couldn't because it was saying file already exists.
So I was wondering how the naming scheme was done so we could possibly rename the old file without causing issues with future emails.
Thank you.
-
Are you talking about MSG files in a user's mailbox?
the file names all start with "md"
The first 2 digits are the precendence. Normally its Normal which is "50"
The next two digits are the node. Used to easily avoid collisions when writing files. In a non clustered install it is always "01"
Followed by a 9 digit number. This number is incremented each time a message is received.
md5001000000001.msg is typically the first message
Each folder has a hiwater.mrk file that includes a count.
[Highest]
Count=16172This means the last message that was put in this folder had a file name similar to this:
md5001000016172.msg
When a message is deleted, MDaemon doesn't go back and use that number again until it has reached the maximum count, which is 999,999,999. So you should be able to find some message numbers that are available in the folder and just rename the file to use one of those.
You can name the files just about anything as long as it starts with md, includese a number and ends with .msg.
-
Yes!
Exact info I was looking for.
Thank you