
Linux에서 Outlook pst를 Thunderbird/Evolution 호환 형식으로 변환하기 위한 스크립트
버전 1.0 작성자: Srijan Kishore 이 가이드에서는 Outlook PST를 Thunderbird/Evolution 호환 SBD 형식으로 변환하는 방법을 보여줍니다. 이를 위해 변환 형식에 대한 스크립트를 만들었습니다. 이것은 Debian/Ubuntu/CentOS에서도 작동합니다!
1. 서문
Outlook2010에서 추출한 Outlook.pst가 이미 준비되어 있습니다. Sample.pst를 사용할 수 있다고 가정합니다.2. 요구사항
Thunderbird가 기본 메일 클라이언트인 내 컴퓨터에 Ubuntu 12.04LTS가 설치되어 있습니다. Evolution을 이메일 클라이언트로 사용할 수도 있습니다.참고: Microsoft 표준에 따라 5Gb 이상의 pst 파일은 메일을 저장하는 데 신뢰할 수 없습니다. 따라서 Sample.pst 파일을 5GB 미만으로 가져오는 것이 좋습니다.3. 스크립트
스크립트를 통해 프로세스를 단순화했습니다. 클립보드에 있는 스크립트를 복사하고 script.sh와 같은 텍스트 파일에 붙여넣고 파일을 저장하기만 하면 됩니다. 스크립트는 다음과 같습니다:-#!/bin/bash
###############################################################################################
###############################################################################################
###############################################################################################
###### This script will help to convert the Microsoft outlook PST file ##########
###### into Thunderbird/Evolution compatible format ##########
###### Script created by Srijan Kishore ##########
###############################################################################################
###############################################################################################
###############################################################################################
#check user
if [ "$USER" = 'root' ]
then
echo "User check passed"
else gdialog --title "User Check" --msgbox "User is not Root. Please run the script as root user." 200 150
echo "User is not Root. Please run the script as root user."
exit 1
fi
#OS check
cat /etc/debian_version > /dev/null
if [ $? != 0 ]; then
gdialog --title "OS check" --msgbox "You are not using Debian/Ubuntu, Install readpst package from http://www.five-ten-sg.com/libpst/rn01re01.html" 200 150
else
readpst -V > /dev/null
if [ $? != 0 ]; then
apt-get update
apt-get -y install readpst
fi
fi
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