233a0afa3146fd298d9c1a4e4e08b28dd5c1b73b
[claws.git] / tools / uuooffice
1 #!/bin/sh
2
3 FILENAME=$(grep -Em 1 "^begin [0-7][0-7][0-7] ." "$1" | cut -d ' ' -f 3-)
4 TMPFILE=/tmp/${0##*/}_$FILENAME
5 uudecode -o - "$1" > "$TMPFILE"
6 ooffice "$TMPFILE"
7 rm -f "$TMPFILE"