dovecot-2.1: decode2text.sh: Assume xmlunzip exists in the same ...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Oct 22 18:36:07 EEST 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/09ed39c15584
changeset: 14781:09ed39c15584
user: Timo Sirainen <tss at iki.fi>
date: Mon Oct 22 18:35:56 2012 +0300
description:
decode2text.sh: Assume xmlunzip exists in the same directory as this script.
This avoids hardcoding /usr/local/libexec/dovecot/ path in it.
diffstat:
src/plugins/fts/decode2text.sh | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 48af47f2eb9c -r 09ed39c15584 src/plugins/fts/decode2text.sh
--- a/src/plugins/fts/decode2text.sh Mon Oct 22 15:35:59 2012 +0300
+++ b/src/plugins/fts/decode2text.sh Mon Oct 22 18:35:56 2012 +0300
@@ -17,6 +17,7 @@
# }
# }
+libexec_dir=`dirname $0`
content_type=$1
# The second parameter is the format's filename extension, which is used when
@@ -66,7 +67,7 @@
cd $tempdir || exit 1
unzip -q "$path" 2>/dev/null || exit 0
find . -name "$name" -print0 | xargs -0 cat |
- /usr/local/libexec/dovecot/xml2text
+ $libexec_dir/xml2text
}
wait_timeout() {
More information about the dovecot-cvs
mailing list