preinst is in evolution-indicator 0.2.20-0ubuntu15.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | #!/bin/sh -e
case $1 in
install|upgrade)
if dpkg --compare-versions "$2" lt-nl "0.2.4-0ubuntu1"; then
rm "/etc/indicators/messages/applications/evolution" || true
rmdir --ignore-fail-on-non-empty "/etc/indicators/messages/applications/" || true
fi
;;
esac
|