I went looking through my list …

I went looking through my list of referers this morning and found several hits from Google. It’s interesting to see that I’m the first link if someone searches for how to convert Netscape Mail folders to Kmail folders
I may as well post the small script I developed to do that:

#!/bin/sh
copydir()
{
    old=$1
    new=$2
    for i in $old/*
    do
        if [ -f $i ] ; then
        cp -va $i $new/
    fi
    done
}

for i in `find nsmail -iname "*sbd"`
do
        DIR=`echo $i | sed s/nsmail/Mail/`
        DIR=`echo "$DIR" | sed s/.sbd/.directory/g`
        DIR=`echo "$DIR" | sed "s/\//\/\./"g`
        mkdir -p $DIR
        copydir $i $DIR
done

This script goes through your nsmail directory and creates the same directory structure in your Kmail Mail directory. I did a recursive one too, but that would stop at about 3 or 4 levels of recursion. (I have a lot of mail!)
The one problem I had with Kmail was the fact that it didn’t understand the uuencoded attachements I got. That was a pain.

A lot of people seem to be looking for references to Bosco too! I wonder why? Is there going to be a revival? hehe.

Leave a Reply

%d bloggers like this:

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close