MobileMail phone/mail gateway
R. Rawson-Tetley, April 2005

This is a webmail gateway designed for mobile phones with XHTML
support. I use it with my Motorola v525 (which has support for 
XHTML 1.0). 

It's VERY lightweight as I get charged an exorbitant amount for 
GPRS bandwidth.

It's a number of CGI scripts (written in Python). Anything above
Python 2.0 should be fine (not sure when IMAP_SSL was added to
Python's imaplib)

You'll need IMAP access to your mail and an accessible SMTP server that
does not require authentication (although it wouldn't be hard to 
extend this for SMTP authentication).

To set this up, copy the files to a directory on your webserver and edit
config.py with appropriate settings for your IMAP/SMTP server. Make sure
that you turn on "Options ExecCGI" for the directory in Apache (or 
however you do it for your webserver).

This contains no security provision WHATSOEVER and assumes it will be 
handled by the server. I personally use the Apache UserAgent filter (my
particular phone sends a useragent string containing the handset model 
and serial number) to only allow my handset access to the pages. I also
have a backup policy that only allows addresses from my provider's GPRS 
address pool (combined with a good portion of guess-the-url obscurity!).
How you do it is up to you.
