Getting engimal in thunderbird on OpenIndiana to work

Here I've given the link to the actual engimail -plugin for thunderbird 6,
to allow signing/encrypting of e-mails.

The installation of the plugin had no problems, but executing gpg was
a problem.

I installed gpg2 from the sfe repository.

But execution of gpg2 didn't find pinentry -> The executeables are in /usr/lib/.

So I linked /usr/lib/pinentry-gtk-2 and /usr/lib/pinentry-curses to /usr/bin
and signing with engimail works now.