On Sun, 14 Sep 2003, Ian Marlier wrote:

> Hi there --
> 
> I'm just in the process of planning a switch from the uw-imap server to
> Courier-IMAP.  The mailserver I'm using is short on resources (it's an old
> beige G3 Mac running Debian linux), and some of my users have massive
> mailfolders (like 100+ MB of mail in a single file).
> 
> Before I can make the switch, though, I need a way to feed all that mail out
> of the mbox-format files, and into Maildirs -- I need to make sure that the
> switch will be transparent to the users on my machine.

Wow.  That's a pretty big requirement.
Does UW-IMAP have Maildir support?
If so, consider using a program (such as what comes with maildrop) to
"split" an MBox file into individual messages (you may need the -f
switch as well), and have the 'delivery' program use maildrop to (re-)deliver
to a Maildir.  Then, move their Mail file out of the way and UW-IMAP
can pick up mail from the Maildir.  I have no idea how to configure
UW-IMAP to check A, then B where A is Maildir and B is Mbox (or
vice-versa).

Consider:

=== convert.sh ===
#! /bin/sh
set -e
SOURCE="$HOME/Mail"
# Note: DESTINATION had better be the same as what
# maildrop uses for DEFAULT
DESTINATION="$HOME/Maildir"
export MAILDROPDEFAULT="$DESTINATION"
if test -d $DESTINATION;do 
  if test -e $DESTINATION; do
    echo "$DESTINATION exists but is not a directory! Aborting!"
    exit 1
  fi
  echo "$DESTINATION doesn't exist, creating..."
  maildirmake $DESTINATION
fi
reformail -s ./deliver.sh < "$SOURCE"
=== convert.sh ===

=== deliver.sh ===
exec maildrop -V0 maildropfilter
=== deliver.sh ===

=== maildropfilter ===
to $DEFAULT
=== maildropfilter ===


Note: The above is a cut-and-paste but untested from my home.
I'm *sure* there are better MBox-to-Maildir utilities out there.
Which reminds me.

Sam?
Would you consider writing a scaled-down version of maildrop that is
similar to safecat, or are people just better off using safecat if they
want a *small*, **fast** stdin-to-file-in-a-maildir utility?

(Such as what might be useful for this problem.)
 
> Is there a program out there which might help with the change-over, or am I
> going to be diving into the murky world of shell scripting?  Has anyone out
> there made this switch who might be able to offer some advice?

Consider altering the procedure above to use 'safecat'.

These are just *suggestions*.

> Any and all thoughts are welcomed.
> 
> Thanks in advance,
> 
> Ian Marlier
> Uphams Corner Charter School
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
> 
> 

--
Democracy is two wolves and a sheep voting on what to have for dinner.
Liberty is two wolves attempting to have a sheep for dinner and
finding a well-informed, well-armed sheep.

Jon Nelson <[EMAIL PROTECTED]>
C and Python Code Gardener


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to