|
a/src/filters/rcldoc |
|
b/src/filters/rcldoc |
|
... |
|
... |
152 |
mtype=`file -b -i "$infile" | awk '{sub(";", "", $1);print $1}'`
|
152 |
mtype=`file -b -i "$infile" | awk '{sub(";", "", $1);print $1}'`
|
153 |
|
153 |
|
154 |
if test X"$mtype" = Xtext/rtf; then
|
154 |
if test X"$mtype" = Xtext/rtf; then
|
155 |
# RTF document disguising as msword either because it has a .doc
|
155 |
# RTF document disguising as msword either because it has a .doc
|
156 |
# extension or because it's an attachment with a wrong mime.
|
156 |
# extension or because it's an attachment with a wrong mime.
|
157 |
exec `dirname $0`/rclrtf $infile
|
157 |
exec `dirname $0`/rclrtf "$infile"
|
158 |
fi
|
158 |
fi
|
159 |
|
159 |
|
160 |
if test X"$mtype" = Xtext/plain; then
|
160 |
if test X"$mtype" = Xtext/plain; then
|
161 |
# Someone gave a .doc ext to their texts. Happens...
|
161 |
# Someone gave a .doc ext to their texts. Happens...
|
162 |
exec `dirname $0`/rcltext $infile
|
162 |
exec `dirname $0`/rcltext "$infile"
|
163 |
fi
|
163 |
fi
|
164 |
|
164 |
|
165 |
if test X"$mtype" = Xapplication/msword; then
|
165 |
if test X"$mtype" = Xapplication/msword; then
|
166 |
# Actually application/msword: try wvWare, which is much
|
166 |
# Actually application/msword: try wvWare, which is much
|
167 |
# slower and we don't use it by default, but it handles some
|
167 |
# slower and we don't use it by default, but it handles some
|