Hell all,
OK. I just finished IMAPdir2Maildir.sh which is as quick and dirty as Maildir2IMAPdir.sh.
While writing this script I found a few typos, etc with Maildir2IMAPdir.sh, so a new one has been included.
The more sophisticated versions are yet to come.
Henry:)
On Fri, 14 May 2004 16:02:29 -0400, Henry Baragar <[EMAIL PROTECTED]> wrote:
Hello,
Here is a quick and dirty shell script that will migrate a Maildir++ depot
to an IMAPdir depot. It does not follow the plan I set out below: it
simply creates a new IMAPdir depot. Please test and send feedback to this
list.
Soon, I will be submitting a more sophisticated script that does follow the plan below (with the exception of disabling and enabling mail delivery. I have decided that that is too hard to do (in the general case), but counterproofs are welcome.
Regards, Henry
On Thu, 13 May 2004 10:09:36 -0400, Henry Baragar <[EMAIL PROTECTED]> wrote:
On Thu, 13 May 2004 12:44:09 +0200 (CEST), Andreas Aardal Hanssen <[EMAIL PROTECTED]> wrote:
On Thu, 13 May 2004, Casey Allen Shobe wrote:Sounds like I want IMAPdir. How can I go about converting a huge amount of folders and mail to IMAPdir? Is there a script for it or do I just go move things one by one, removing the prefixing dots and putting the root cur/new/ tmp in a new folder called INBOX? Is the path to the delivery location only stored in one place in qmail? And again in bincimap.conf?
We need such a script, it would be a quite useful contribution if
someone
could write it. For the sake of keeping the back door open, there should
be both a IMAPdir->Maildir++ script and a Maildir++->IMAPdir script.
It shouldn't be too hard to write one :-).
I am willing to write one.
My biggest concern is how to handle delivery instrucutions squirreled away in .qmail* files, .mailfilter files, etc. Any ideas other than recreating the Maildir++ depot with soft links to the IMAPdir depot (or vice versa as the case may be)?
My current thoughts are: 1. Disable mail delivery & pick up for the user 2. Build the IMAPdir from the Maildir 3. Move Maildir to Maildir.bak 4. Build a new Maildir with links to IMAPdir 5. Enable mail delivery & pick up for the user
Of course, switch all occurances of IMAPdir with Maildir for converting the opposite direction. One more gotcha is that to figure out how to convert INBOX siblings in IMAPdir to Maildir++ folders.
I also need to find out what MTA's are being used with Binc (other than Qmail) and to find out how to disable/enable mail delivery on a per-user basis with those MTA's. For that matter, how does on disable Binc on a per-user basis.
Have I forgotten anything? Am I making this too complex?
Finally, any strong objections to my doing this in perl?
Regards, Henry
Andy
-- Andreas Aardal Hanssen | http://www.andreas.hanssen.name/gpg Author of Binc IMAP | "It is better not to do something http://www.bincimap.org/ | than to do it poorly."
-- Henry Baragar Instantiated Software Inc. http://www.instantiated.ca
Maildir2IMAPdir.sh
Description: Binary data
IMAPdir2Maildir.sh
Description: Binary data
