#!/bin/sh
# Shared Pair: upstream's copy of this wrapper pointed both the SASL plugin
# search path and the dynamic loader search path at its own directory, so
# mailsync.bin used the cyrus-sasl client objects bundled beside it. This
# package ships none of those and depends on Ubuntu's libsasl2-2 and
# libsasl2-modules instead, so the plugin directory below is the
# distribution's and libsasl2.so.2 resolves through the normal loader path.
# The loader override is deliberately absent, and the package asserts that.
set -eu
SASL_PATH="${SASL_PATH:-/usr/lib/x86_64-linux-gnu/sasl2}"
export SASL_PATH
exec "$(dirname "$0")/mailsync.bin" "$@"
