-
Notifications
You must be signed in to change notification settings - Fork 0
/
B-email.sh
47 lines (34 loc) · 1.05 KB
/
B-email.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#/bin/bash
#
# for each of the PST files create a folder and burst into it
# IFS business, because we have filenames
# with spaces in them...
OLDIFS=$IFS
IFS=$'\n'
#
#
ifile="ClientA/USB-1/PersonA.pst"
ofile="ClientA-intermediate/PersonA-emails"
mkdir -p $ofile
readpst -S $ifile -o $ofile >$ofile/proc.log
ifile="ClientA/USB-1/PersonB.pst"
ofile="ClientA-intermediate/PersonB"
mkdir -p $ofile
readpst -S $ifile -o $ofile >$ofile/proc.log
ifile="ClientA/USB-2/PersonC.pst"
ofile="ClientA-intermediate/PersonC-inbox"
mkdir -p $ofile
readpst -S $ifile -o $ofile >$ofile/proc.log
ifile="ClientA/USB-2/PersonD.pst"
ofile="ClientA-intermediate/PersonC-send"
mkdir -p $ofile
readpst -S $ifile -o $ofile >$ofile/proc.log
ifile="ClientA/USB-3/PersonB/ABC/PersonE/archive.pst"
ofile="ClientA-intermediate/ABC-archive"
mkdir -p $ofile
readpst -S $ifile -o $ofile >$ofile/proc.log
ifile="ClientA/USB-3/PersonB/MTN - CPML/MTN- Archived Emails/archive.pst"
ofile="ClientA-intermediate/MTN-archive"
mkdir -p $ofile
readpst -S $ifile -o $ofile >$ofile/proc.log
ISF=$OLDIFS