#!/bin/sh
umask 022
# make temporary HOME, as it attempts to touch files in $HOME/.mozilla
# dangerous if you run this with sudo with keep_env += HOME
# also TMPDIR could be pointing to sudo user's homedir so we reset that too.
t=$(mktemp -d)
/bin/rm --interactive=never -f /usr/lib/icedove/components/{compreg,xpti}.dat
TMPDIR= TMP= HOME=$t /usr/lib/icedove/icedove -register
rm -rf $t
