[Dovecot] Integrate mbox into mdbox
Hi! I have several mbox files (unstructured, only the big plain mbox files) and I would like to integrate/read these mbox files into mdbox subfolders of specific users. This is a production system and I don't want to disturb running services and I am a bit afraid of not using the right command and maybe destroying (or whatever) their mailboxes. I am sure it is pretty easy. Can someone please tell me the correct dsync command line that I should use to read each mbox file (one-way) into the specific folder of the mdbox folder structure of a specific user? Thanks a lot, -lutzn
On 4/20/2013 12:03 PM, lutz.niederer@gmx.net wrote:
I have several mbox files (unstructured, only the big plain mbox files) and I would like to integrate/read these mbox files into mdbox subfolders of specific users. This is a production system and I don't want to disturb running services and I am a bit afraid of not using the right command and maybe destroying (or whatever) their mailboxes. I am sure it is pretty easy. Can someone please tell me the correct dsync command line that I should use to read each mbox file (one-way) into the specific folder of the mdbox folder structure of a specific user?
More information about the nature of these mbox files, and how they are or will be used, would be helpful.
Is there a reason you don't/won't/can't simply create a new namespace, instead of copying the contents from the mbox files into users' mdbox files?
-- Stan
I have several mbox files (unstructured, only the big plain mbox files) and I would like to integrate/read these mbox files into mdbox subfolders of specific users. This is a production system and I don't want to disturb running services and I am a bit afraid of not using the right command and maybe destroying (or whatever) their mailboxes. I am sure it is pretty easy. Can someone please tell me the correct dsync command line that I should use to read each mbox file (one-way) into the specific folder of the mdbox folder structure of a specific user?
More information about the nature of these mbox files, and how they are or will be used, would be helpful.
These mbox files are left over from old installations. The messages contained in these files should be moved into users' mdbox folders. The user tells me the name of the folder and I was hoping for a dsync command line that reads all the messages from the mbox and feeds them into that specific mdbox folder. Some users have 1 some have 5 mbox files left over that need to be imported. After that the mbox files can be thrown away.
Is there a reason you don't/won't/can't simply create a new namespace, instead of copying the contents from the mbox files into users' mdbox files?
Simplicity. I thought it would be much easier to push them into mdbox folders with the right command - one by one - than doing it with namespaces. If there is no other way I will do it with namespaces.
-lutzn
On 4/21/2013 2:10 AM, lutz.niederer@gmx.net wrote:
I have several mbox files (unstructured, only the big plain mbox files) and I would like to integrate/read these mbox files into mdbox subfolders of specific users. This is a production system and I don't want to disturb running services and I am a bit afraid of not using the right command and maybe destroying (or whatever) their mailboxes. I am sure it is pretty easy. Can someone please tell me the correct dsync command line that I should use to read each mbox file (one-way) into the specific folder of the mdbox folder structure of a specific user?
More information about the nature of these mbox files, and how they are or will be used, would be helpful.
These mbox files are left over from old installations. The messages contained in these files should be moved into users' mdbox folders. The user tells me the name of the folder and I was hoping for a dsync command line that reads all the messages from the mbox and feeds them into that specific mdbox folder. Some users have 1 some have 5 mbox files left over that need to be imported. After that the mbox files can be thrown away.
Is there a reason you don't/won't/can't simply create a new namespace, instead of copying the contents from the mbox files into users' mdbox files?
Simplicity. I thought it would be much easier to push them into mdbox folders with the right command - one by one - than doing it with namespaces. If there is no other way I will do it with namespaces.
Simplicity is the reason I mentioned this. You should be able to simply copy all the mbox files, possibly with a single command, to an appropriate user directory, then create the namespace.
The way you've described this it seems these mbox files are archives, not 'active' folders that were being used daily prior to your new Dovecot deployment. If that is correct the namespace route is probably better, for many reasons, related both to Dovecot and filesystem fragmentation, etc.
If these are folders that were being used daily, recently, then migrating the contents to mdbox may be preferable, as future appends will create less FS fragmentation vs mbox.
-- Stan
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sat, 20 Apr 2013, lutz.niederer@gmx.net wrote:
I have several mbox files (unstructured, only the big plain mbox files) and I would like to integrate/read these mbox files into mdbox subfolders of specific users. This is a production system and I don't want to disturb running services and I am a bit afraid of not using the right command and maybe destroying (or whatever) their mailboxes. I am sure it is pretty easy. Can someone please tell me the correct dsync command line that I should use to read each mbox file (one-way) into the specific folder of the mdbox folder structure of a specific user?
what Dovecot version do you have?
doveadm help import
might do what you want.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUXaAdF3r2wJMiz2NAQLuaAf+P3B81+32fQ/35n+Vt8lWQWo1jCdAyhPB qP837o3FMwbYhOBxF99VLZDLrB09SQE6s/677QW5yTuFZnWIyWZRRYRWYPXXKCzv qaPp1LoNX+YrdR14eaq1knh4XpF3S9bvd/cb1pPVP3s0yggzLiKcyTeSzamugvFl AlFgRcDYEK+GKqwOV6w5Mg47wb0yKEFYQkWY6x5rtqTY5/XaqsvcGPBNw89U4h2w xUJcPx+lT3nI500M5IbikY1sr1rPv2XJRrngFlBbaf/hNFuFFf4H1WhKO3H06I7F miXmTs2h9u8N1ysRq/uqCZGEc2gkg1gaTGke5hMa5b53D9AvB8rZGA== =KPWK -----END PGP SIGNATURE-----
participants (3)
-
lutz.niederer@gmx.net
-
Stan Hoeppner
-
Steffen Kaiser