On Sat, 15 May 2004 09:01:27 +0200 (CEST), Andreas Aardal Hanssen <[EMAIL PROTECTED]> wrote:

On Fri, 14 May 2004, Henry Baragar wrote:
Hell all,

um... ;-)

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.

Great work! I'll be more than happy to put it into the contrib area of the
Binc IMAP package. If you put in a copyright header and some documentation
at the top, it'll fit in smoothely.


Is the following sufficeint?

#! /bin/sh
#
# Maildir2IMAPdir (v0.2) - convert Maildir++ depots to IMAPdir depots
# Copyright (C) 2004 Henry Baragar mailto:[EMAIL PROTECTED]
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# WARNING:
# All activity on the Maildir must be stopped before running this
# script. MAIL MAY BE LOST if you do not. This includes both MTA's
# (e.g. qmail, postfix) and MUA's (e.g. bincimap).
#
# WARNING:
# There is no attempt to convert .qmail* files, .mailfilter or any
# other files that affect mail delivery: that is YOUR RESPONSIBILITY.
#
# This script converts a Maildir++ to an IMAPdir, using brute force
# and ignorance. It is invoked as follows:
# Maildir2IMAPdir.sh Maildir IMAPdir
# If it completes successfully, you will see two new directories:
# IMAPdir - the new IMAPdir
# Maildir.bak - the original Maildir
# Since Maildir has been removed, delivery instructions to Maildir will fail.
# So, make sure you convert all your .qmail, etc. files and the same time.
# And yes, your mail is now taking up twice as much space, which can be
# recovered by removing Maildir.bak (after you have convinced yourself that
# the migration was a success).
#
# See Maildir2IMAPdir.pl for a more sophisticated conversion utilility.
#


Henry :-)

ps.  That is the first 42 of 87 lines of Maildir2IMAPdir.sh!-) HB

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

Reply via email to