diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch) | |
tree | 67208f7c145782a7e90b123b982ca78d88cc2c87 /kmail/mh2kmail | |
download | tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/mh2kmail')
-rwxr-xr-x | kmail/mh2kmail | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/kmail/mh2kmail b/kmail/mh2kmail new file mode 100755 index 000000000..827cac581 --- /dev/null +++ b/kmail/mh2kmail @@ -0,0 +1,27 @@ +#!/bin/bash +# This script converts MH mail folders to the folders that KMail +# prefers (all messages in one file) +# +# usage: mh2kmail <dirname> +# +# Author: Stefan Taferner <taferner@kde.org> +# This script is under GPL +# +if [ "X$*" = "X" ]; then + echo "usage: mh2kmail <dirname>" + exit 0 +fi + +MH_DIR=$1 +FOLDER=${MH_DIR}.mbx + +# remove old kmail folder if any +rm -f $FOLDER + +for f in `/bin/ls $MH_DIR|sed -e :a -e 's/^.\{1,5\}$/ &/;ta'|sort`; do + echo "From ???@??? 00:00:00 1997 +0000" >> $FOLDER + cat $MH_DIR/$f >> $FOLDER +done + +echo "Done. Messages stored in file $FOLDER." + |