Source

InstaMail / config.py

Full commit
import os

#Application Settings

#Application root dir
APP_ROOT_DIR = os.path.abspath(os.path.dirname(__file__))
#Platform Name
PLATFORM_NAME = "genemailtor"
#Application name (AppSpot App Id)
APPNAME = "genemailtor"
#Maximum Email Fetch
MAX_FETCH = 50

#User Settings

#Minimum user name characters
MIN_USERNAME_CHAR = 4
#Maximum user name characters
MAX_USERNAME_CHAR = 25

#Staring Account Life
ACCOUNT_LIFE = 2 * 60 #in seconds
 
 
 
 
 
 
 

#Application host name (auto)
if os.environ.get('HTTP_HOST'): 
    HOSTNAME = os.environ['HTTP_HOST']
else:
    HOSTNAME = os.environ['SERVER_NAME']    
    
#Generated Application Settings, try not to change these, but modify the ones above.
SETTINGS = {
    'appname': APPNAME,
    'hostname': HOSTNAME, 
    'url': 'http://'+APPNAME+'.appspot.com',
    'emaildomain': '@'+APPNAME+'.appspotmail.com',
    'minusername': MIN_USERNAME_CHAR,
    'maxusername': MAX_USERNAME_CHAR,
    'maxfetch': MAX_FETCH,
    'platform': PLATFORM_NAME,
    'account_life':ACCOUNT_LIFE
}