Skip to content

Instantly share code, notes, and snippets.

@dasgoll
Created March 10, 2014 18:48
Show Gist options
  • Save dasgoll/9471595 to your computer and use it in GitHub Desktop.
Save dasgoll/9471595 to your computer and use it in GitHub Desktop.
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