[sylpheed:35936] Re: Backup

Silvio Siefke siefke_listen at web.de
Thu Jan 2 10:51:20 JST 2014


Hello,

i found good way to run a update. I use the nmh package. You can find
under Gentoo (emerge -av nmh), maybe need ~x86/~amd64, with Arch can
run yaourt -S nmh. Debian/Ubuntu should have in repo other i not know.
Put the follow script in the Mail Directory where you stored you MH 
Files from sylpheed, set the rights and run it. You have a new folder
called mbox then and then i can pack with lzma for Backup. Should packf
make trouble like no nmh package run first install-mh and then run the
script again.

#!/bin/bash

DEST="mbox"
PACKF="/usr/bin/packf"

(IFS='
'
for DIR in `find . -type d`; do
	if [ "$DIR" = "." ]; then
		continue
	fi
	if [ "$DIR" = "./$DEST" ]; then
		continue
	fi

	CONVDIR="."
	if [ `dirname $DIR` != "." ]; then
		CONVDIR=`dirname "$DIR" | sed -e "s/\.\///" | sed -e "s/\//.sbd\//"`'.sbd'
	fi
	mkdir -p "$DEST/$CONVDIR"

	MAILBOX=`basename $DIR`
	MBOXPATH="$DEST/$CONVDIR/$MAILBOX"

	touch $MBOXPATH

	yes | $PACKF +"$DIR" -mbox -file $MBOXPATH
done
)

Hope will help someone like me. 

Thanks for help & Nice day
Silvio


More information about the Sylpheed mailing list