2007-02-19 [paul] 2.7.2cvs51
[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"