Created
March 10, 2014 18:48
-
-
Save dasgoll/9471595 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir ~/home/outlook | |
#File selection | |
readpst -o ~/home/outlook -r `zenity --file-selection` | |
find ~/home/outlook -type d | tac | grep -v '^~/home/outlook$' | xargs -d '\n' -I{} mv {} {}.sbd | |
find ~/home/outlook.sbd -name mbox -type f | xargs -d '\n' -I{} echo '"{}" "{}"' | sed -e 's/\.sbd\/mbox"$/"/' | xargs -L 1 mv | |
#Script Completion | |
find ~/home/outlook.sbd -empty -type d | xargs -d '\n' rmdir | |
gdialog --title "Pst Conversion complete" --msgbox "Your pst conversion is complete,just paste the folder ~/home/outlook.sbd in Local Folder in Thunderbird/Evolution and you can use the folders there" 200 150 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment