Thanks for the nice gmail script:)
I am having problems with running the gmobile mail script on a shared hosting account. And have found a solution.
Use this location http://gmobile.defza.com/new/gmobile/ to view the error when performing an action on a mail item (e.g. mark as unread). Also attachments won't work.
The reason is that $_SERVER['SCRIPT_NAME'] always returns "/cgi-system/php.cgi" on the server. So whenever basename(SELF) is used in the code, it returns php.cgi instead of the actual .php file name.
You can fix this by using PHP_SELF instead of SCRIPT_NAME in libgmailer.php [line 514] and gmobile_env.php [line 105].
It then works OK on the shared hosting server.