-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBX-another-email.sh
52 lines (39 loc) · 1.04 KB
/
BX-another-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
46
47
48
49
50
#/bin/bash
#
# Xperimental!!
#
#
# for each of the PST files create a folder and burst into it
# - BUT using the "-o" to get tthunderbird compatible files
#
# IFS business, because we have filenames
# with spaces in them...
OLDIFS=$IFS
IFS=$'\n'
#
#
ifile="ClientA/USB-1/PersonA.pst"
ofile="ClientA-X/PersonA-emails"
mkdir $ofile
readpst $ifile -o $ofile >$ofile/proc.log
ifile="ClientA/USB-1/PersonB.pst"
ofile="ClientA-X/PersonB"
mkdir $ofile
readpst $ifile -o $ofile >$ofile/proc.log
ifile="ClientA/USB-2/PersonC.pst"
ofile="ClientA-X/PersonC-inbox"
mkdir $ofile
readpst $ifile -o $ofile >$ofile/proc.log
ifile="ClientA/USB-2/PersonD.pst"
ofile="ClientA-X/PersonC-send"
mkdir $ofile
readpst $ifile -o $ofile >$ofile/proc.log
ifile="ClientA/USB-3/PersonB/ABC/PersonE/archive.pst"
ofile="ClientA-X/ABC-archive"
mkdir $ofile
readpst $ifile -o $ofile >$ofile/proc.log
ifile="ClientA/USB-3/PersonB/MTN - CPML/MTN- Archived Emails/archive.pst"
ofile="ClientA-X/MTN-archive"
mkdir $ofile
readpst $ifile -o $ofile >$ofile/proc.log
ISF=$OLDIFS