Mailviewer launches pterm ! oh no!

I’m working on a new Photon application to view and send Mail.

I do an ‘export MAILVIEWER=/usr/apps/bin/phmail’

but when I click on the mailbox button, pdm starts a pterm window along with
my photon program.

I dont need the pterm window because my mail viewer IS a photon application.

How can i get rid of it !

please help…

marclupien@hotmail.com