forked from GPGTools/GPGMail
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate-mail-headers.sh
More file actions
executable file
·23 lines (19 loc) · 913 Bytes
/
create-mail-headers.sh
File metadata and controls
executable file
·23 lines (19 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
if [ -z "$1" ]; then
echo "Output directory has to be specified!"
exit 1
fi
ROOT="/"
OUTDIR="$1"
if [[ -n "$2" && -d "$2" ]]; then
ROOT="$2"
fi
ADDRESS_FLAGS="-a -A"
if [[ -n "$3" ]]; then
ADDRESS_FLAGS=""
fi
class-dump $ADDRESS_FLAGS -I -H -o "$OUTDIR/MailUI" "$ROOT/Applications/Mail.app/Contents/MacOS/Mail"
class-dump $ADDRESS_FLAGS -I -H -o "$OUTDIR/EmailAddressing" "$ROOT/System/Library/PrivateFrameworks/EmailAddressing.framework/EmailAddressing"
class-dump $ADDRESS_FLAGS -I -H -o "$OUTDIR/MailCore" "$ROOT/System/Library/PrivateFrameworks/MailCore.framework/MailCore"
class-dump $ADDRESS_FLAGS -I -H -o "$OUTDIR/MailUIFW" "$ROOT/System/Library/PrivateFrameworks/MailUI.framework"
class-dump $ADDRESS_FLAGS -I -H -o "$OUTDIR/MailFW" "$ROOT/System/Library/PrivateFrameworks/Mail.framework"
class-dump $ADDRESS_FLAGS -I -H -o "$OUTDIR/IMAP" "$ROOT/System/Library/PrivateFrameworks/IMAP.framework"