view package @ 12:3f627519a92d stable-0-5-2

properly ignore (second block zero) errors. that will just drop some unknown attachments, but the rest of the data is still found
author carl
date Sat, 18 Feb 2006 09:56:00 -0800
parents
children ac98f448b6ab
line wrap: on
line source

#!/bin/bash

pst=outlook.pst

cp /home/ldap/$pst .
chown --recursive root:root *
make clean
make all
chown --recursive carl:carl *

if [ -f pst2ldif ]; then
    ./pst2ldif -b 'o=ams-cc.com, c=US' -c 'newPerson' $pst >ams.ldif
    ./readpstlog pst2ldif.log | less >my.log
    hexdump -C $pst >pst.dump

    grep '^dn:' ams.ldif            | sort >aaa
    grep '^dn:' /home/ldap/ams.ldif | sort >bbb
    echo 'differences from nightly ldap'
    diff aaa bbb
    echo 'end differences'
    rm -f aaa bbb
fi