bobomailrc.py
上传用户:gyjinxi
上传日期:2007-01-04
资源大小:159k
文件大小:2k
- import os; pjoin = os.path.join
- ## bobomailrc:
- # general
- __version__ = "0.3-1"
- __author__ = "Henning Schr鰀er <ich@henning-schroeder.de>"
- true = 1
- false = not true
- app_dir = "/usr/local/bobomail"
- log_dir = pjoin(app_dir, "logs")
- template_dir = pjoin(app_dir, "dtml")
- locale_dir = pjoin(app_dir, "locale")
- # Choose your language: "" for English or "de_DE" for German
- language = ""
- os.environ["LANGUAGE"] = language
- # Move the images directory somewhere to your document root
- # or make a alias in your httpd.conf
- # like this: Alias /bobomail/ "/usr/ local/bobomail/images/"
- image_dir = "/bobomail" # relative to document root
- # Currently choose here your pop3 server
- auth_host = "localhost"
- # place here the domain for the from-header
- domain = "meine-domain.de"
- # BoboMailHTTPD.py
- httpd_port = 9673
- access_log = pjoin(log_dir, "access.log")
- error_log = pjoin(log_dir, "error.log")
- # sendmail.py
- smtp_host = "localhost" # You might change smtp_host
- bm_mimetypes = pjoin(app_dir, "mime.types")
- # auth.py
- max_session_length = 3600 # in seconds
- auth_db_filename = pjoin(log_dir, "bobomail_auth.db")
- # fetchmail.py
- user_dir = "%s/Mail" % app_dir # not used currently
- pop3_host = imap4_host = auth_host
- # mimeviewer.py
- # no need to change something below
- mime_template = pjoin(template_dir, "mimepart.html")
- message_template = pjoin(template_dir, "messagepart.html")
- text_template = pjoin(template_dir, "textpart.html")
- html_template = pjoin(template_dir, "htmlpart.html")
- image_template = pjoin(template_dir, "imagepart.html")
- vcard_template = pjoin(template_dir, "vcardpart.html")
- # main.py
- template_template = pjoin(template_dir, "template.html")
- about_template = pjoin(template_dir, "about.html")
- login_template = pjoin(template_dir, "login.html")
- error_template = pjoin(template_dir, "error.html")
- compose_template = pjoin(template_dir, "compose.html")
- list_template = pjoin(template_dir, "list.html")
- mail_template = pjoin(template_dir, "mail.html")
- sent_template = pjoin(template_dir, "sent.html")
- # log.py
- log_filename = pjoin(log_dir, "bobomail.log")