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.


You might also like

  • No related posts

If you like this post then please subscribe to my full RSS feed. You can also click here to subscribe by email. There are also my fabulous photos to explore too!

Leave a Reply

Loading Facebook Comments ...