Wednesday, September 9, 2015

libpst and ost conversion

crap. i have an ost file and i need to pick through it for messages.

i could go to one of those creepy websites and pay for some application to convert my ost to pst and have a nice day. or. i could use something on my centos 6 linux box to do the same.
hmm.

linux solution it is! let's install libpst. it has something called readpst which can convert an
ost to mbox (eml) format... perfect for grepping or importing into mailarchiva. oh yes.

 [natas@hell ~]# cd /usr/local/src/  
 [natas@hell ~]# wget http://www.five-ten-sg.com/libpst/packages/libpst-0.6.64-1.el6.src.rpm  
 [natas@hell ~]# wget http://www.five-ten-sg.com/libpst/packages/centos6/libpst-0.6.64-1.el6.x86_64.rpm  
 [natas@hell ~]# wget http://www.five-ten-sg.com/libpst/packages/centos6/libpst-debuginfo-0.6.64-1.el6.x86_64.rpm  
 [natas@hell ~]# wget http://www.five-ten-sg.com/libpst/packages/centos6/libpst-devel-0.6.64-1.el6.x86_64.rpm  
 [natas@hell ~]# wget http://www.five-ten-sg.com/libpst/packages/centos6/libpst-devel-doc-0.6.64-1.el6.x86_64.rpm  
 [natas@hell ~]# wget http://www.five-ten-sg.com/libpst/packages/centos6/libpst-doc-0.6.64-1.el6.x86_64.rpm  
 [natas@hell ~]# wget http://www.five-ten-sg.com/libpst/packages/centos6/libpst-libs-0.6.64-1.el6.x86_64.rpm  
 [natas@hell ~]# wget http://www.five-ten-sg.com/libpst/packages/centos6/libpst-python-0.6.64-1.el6.x86_64.rpm  
 [natas@hell ~]# yum install ImageMagick  
 [natas@hell ~]# yum install libgsf  
 [natas@hell ~]# yum install libgd  
 [natas@hell ~]# yum install libgsf  
 [natas@hell ~]# yum install boost-python-1.41.0  
   
 later...  
   
 [natas@hell ~]# readpst -D -M -e thedamned\@purgatory.com.ost   
 [natas@hell ~]# cd thedamned\@purgatory.com.ost1  
 [natas@hell ~]# ls  
   
 Inbox   Calendar Deleted Items   Sent Items  
   
 [natas@hell ~/thedamned\@purgatory.com.ost1 ]# grep -r Nortel *  
   
 Calendar/423.ics:DESCRIPTION:When: Friday\, November 06\, 2009 11:00 AM-11:30 AM (GMT-05:00) Eastern Time (US & Canada).  
 \nWhere: purgatory \n\n*~*~*~*~*~*~*~*~*~*\n\nthedamned – Avaya has purchased Nortel (and our   
 Meridian phone system). This person says our phone system will no longer be supported in a few months and is coming in   
 to discuss this. I’d like you to be in the meeting with me to discuss options.\n\n  

No comments: