]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fts: decode2text.sh now ignores any errors from doc/xls/ppt decoders.
authorTimo Sirainen <tss@iki.fi>
Fri, 5 Aug 2011 09:07:48 +0000 (12:07 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 5 Aug 2011 09:07:48 +0000 (12:07 +0300)
src/plugins/fts/decode2text.sh

index 77761f77b8a8904bf6364682203dcec6433c73f5..c457b6fb645e86fc9921a8a5ecae6d95bdb274c0 100755 (executable)
@@ -74,11 +74,11 @@ export LANG
 if [ $fmt = "pdf" ]; then
   /usr/bin/pdftotext $path -
 elif [ $fmt = "doc" ]; then
-  /usr/bin/catdoc $path
+  /usr/bin/catdoc $path 2>/dev/null
 elif [ $fmt = "ppt" ]; then
-  /usr/bin/catppt $path
+  /usr/bin/catppt $path 2>/dev/null
 elif [ $fmt = "xls" ]; then
-  /usr/bin/xls2csv $path
+  /usr/bin/xls2csv $path 2>/dev/null
 elif [ $fmt = "odt" -o $fmt = "ods" -o $fmt = "odp" ]; then
   xmlunzip "content.xml"
 elif [ $fmt = "docx" ]; then