# ****************************************************************************
# Surgeweb - system wide defaults
# ----------------------------------------------------------------------------
# WARNING This file should not be directly modified as it will get overwritten 
# on upgrades. To customise any settings instead do so in custom/defs_global.dat,
# which get loaded "over the top of" any defaults defined here
# note: any line starting with # is a comment and will be ignored
# ****************************************************************************


# *file_format_version* File format version (do not edit)
file_format_version 0

# *none* No setting to update caches. This file should only be changed by surgemail upgrades
#  in which case the global caching id gets incremented (one can still use g_web_ref_path_extension
#  if required)

# *template_version* template file version to prevent compatibility issues on binary only upgrades
template_version 1


# ********************************************
# Interface rebranding
# ********************************************

# *login_css* Define the login page css files
login_css login.css

# *login_title* Login page title text
login_title Welcome to SurgeWeb

# *login_title_comment* Login page comment 
#  note: This is not displayed by some login css files
login_title_comment Surgeweb login page for all interfaces.

# *login_post_comment* Login page bottom comment
login_post_comment SurgeWeb &copy;2009-2015 <a href="http://netwinsite.com" target="popup" style="color:white">Netwin Ltd</a>, <a class="login_link_small" href="/about_mail.htm">about SurgeMail</a>

# *logo_image* The logo as displayed in the top left of the surgeweb interface [valid: default, none, {image file}]
#  note: the image file must be located surgeweb/custom/domain.name/{image file}
#  note: banner height can be adjusted for different sized logo images if required
logo default

# *banner_height* The height of the top banner in pixels 
#  note: this maybe modified with banner_overlap
banner_height 50

# *footer* The footer text as it gets displayed at the bottom of the message list page and popup windows
#  note: blank or set height to 0 to hide 
footer SurgeWeb &copy;2009-2015 <a href="http://netwinsite.com" target="popup">Netwin Ltd</a>

# *footer_height* The height of the footer in pixels 
#  note: set to 0 to hide
footer_height 18

# *info_panel* An arbitrary information panel on the top left of the surgeweb interface. To be used for
# informational messages etc.
#  note: blank hides
#info_panel Any arbitrary text or html message

# *title* The title as it gets displayed in the browser title bar
title SurgeWeb


# ********************************************
# User preference defaults
#  Note: These are only used at first ever login. Subsequent to this 
#  the preferences as stored in the users own config file are used.
# ********************************************

# *pref_windows* Show messages / compose windows as [valid: popup | tabbed | inline]
pref_windows tabbed

# *pref_preview* Message preview window layout [valid: vert | horiz | none]
pref_preview vert

# *pref_mode* Webmail behaviour [valid: app | web] 
#  note: app="like desktop client / yahoo mail" web="like web page / gmail"
pref_mode app

# *pref_date_format* Preferred date format [valid: D/M/YYYY | M/D/YYYY]
pref_date_format D/M/YYYY

# *pref_time_format* Preferred time format [valid: h:mm XM | hh:mm | hh:mm:ss]
pref_time_format h:mm XM

# *pref_noautoadd* Disable automatically create contact entries for messages you reply to
#pref_noautoadd false

# *pref_sounds* Sound feedback on successful message send and new messages received [valid: all | send | new | none]
pref_sounds all

# *pref_timezone* Default timezone
#pref_timezone

# *pref_fldopen* Start 'More Folders' opened by default
pref_fldopen false

# *pref_nocache* Disable 'inbox caching'. Caching provides faster switching to inbox messages but uses initial bandwith. Only suggested if you have many low bandwidth users.
#pref_nocache false

# *pref_allow_images* External images are blocked for security reasons. This changes the way they are allowed.
#pref_allow_images

# *pref_imap_refresh* Use if you are using another imap client too and are not seeing changes propagated, slightly slower. (NOT YET FULLY IMPLEMENTED)
#pref_imap_refresh

# *pref_sizer1* Initial left column size in pixels
pref_sizer1 155

# *pref_hide_integration_warning* Hide initial surgeplus and user.cgi integration warning
pref_hide_integration_warning false

# --------------------------------------------
# Preferences not configurable via admin interface
# --------------------------------------------

# *pref_message_done_action* Action after deleting or moving a message on message list [valid: next | prev | none ]
pref_message_done_action next

# *pref_message_done_action2* Action after deleting or moving a message from inline message display [valid: next | prev | list]
pref_message_done_action2 list

# *pref_nocompress* Disable http compression for requests within a logged in session. Compression saves approx 80% of bandwidth, only use for troubleshooting. 
#  note: also see use_compression
# pref_nocompress

# *pref_sizer2* DO NOT CHANGE! Initial center pane sizing, only initialised (to 60% of column) if pref_sizer2==0
pref_sizer2 0
pref_sizer2w 350

# *pref_sizer3* 
pref_sizer3 180


# ********************************************
# Other settings
# ********************************************

# What sort of "panel look" is used in the interface. NOT A REAL SETTING, only used in admin interface to set
# panel_mode, panel_gap, and banner_overlap [valid: default | panelised | plain | {blank} ] as described below
panel_look default
# Recommended setting combinations:
# 1) Default surgeweb:  panel_mode plain  &  panel_gap 0 & banner_overlap 0
# 2) Panelised interface ("a bit like outlook"): panel_mode orig  &  panel_gap 4 & banner_overlap 0
# 3) Very plain (possibly customisable using extend.js / extend.css): panel_mode plain  &  panel_gap 0 & banner_overlap 0
panel_mode plain
panel_gap 0
banner_overlap 2

# Specials folder customisation of foldername and automatic selection between existing folders
INBOX INBOX 
Drafts Drafts,Draft Items,Draft Messages
Sent Sent,Sent Items,Sent Messages
Trash Trash,Deleted Items,Deleted Messages
Spam Spam
Done Done
		
#special_folders Specials folders displayed at the top level
special_folders Later,Drafts,Templates,Sent,Spam,Trash,Done

#nocreate_folders "Special folders" are "created if they don't exist", any folder listed in here will not get created
nocreate_folders Later,Templates,Spam,Done

# The name of the SurgeMail Spam Mailstore / Friends Pending (must be same as g_friends_pending_name)
imap_spam_folder Friends Pending


# *example_extension* 
#example_extension false

# *use_compression* Use http compression for all requests even if not within a logged in session  [valid: true | false]
#  note: also see pref_nocompress
use_compression	true

# *developer_enable* IP wildcard to enable developer features within the surgeweb interface
developer_enable 

# *custom_css* Enable CSS extension based customisation
custom_css false

# *custom_css* Enable Javascript extension based customisation
custom_js false

# *message_font_size* default message font size when editing and sending messages
message_font_size 12

# --------------------------------------------
# Preferences not configurable via admin interface
# --------------------------------------------

# *show_beta_panes* DO NOT CHANGE! Show beta tester information panes  [valid: true | false]
show_beta_panes false


# *mismatch_check*  Whether to display from address mismatches [valid: disabled, domain (default), exact]
mismatch_check domain
# *show_reverse*  Whether to display reverse lookup info in from mismatches [valid: true, false]
show_reverse true

# ********************************************
# Interface colouring defaults
# WARNING: if any of these are changed, caching ids must be incremented
# 	to ensure that browser cached files get correctly refreshed
# ********************************************

#Page background colour
background_color #A0BFE8

#Page background gradient image [valid: default, none, {image file}]
# note the image file must be located surgeweb/custom/domain.name/{image file}
background_gradient default

# Main toolbar coloring [valid: default, none, {image file}]
# note the image file must be located surgeweb/custom/domain.name/{image file}
toolbar_gradient default

# Button coloring [valid: default, none, {image file}]
# note the image file must be located surgeweb/custom/domain.name/{image file}
button_gradient default
button_gradient_highlight default

# Message display header color
message_header_color #e3efff

# Message edit header color
message_edit_header_color #bddef4

# Color of all "dark blue borders" in interface
border_color #5a82b8

# Offwhite default color of left column panel backgrounds
lpanel_color #f7f7f7
cpanel_color #f0f0f0

# Text color of link bar in the banner
linkbar_text_color black

# Footer color
footer_color #bcd8fd

# Example google ads 
#ad1_html <script type="text/javascript"> google_ad_client = "pub-8327453927657763"; google_ad_width = 120; google_ad_height = 600; google_ad_format = "120x600_as"; google_ad_type = "text"; google_ad_channel = ""; </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
#image_ad1 <script type="text/javascript"> google_ad_client = "pub-8327453927657763"; google_ad_width = 120; google_ad_height = 600; google_ad_format = "120x600_as"; google_ad_type = "image"; google_ad_channel = ""; </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

# Right column custom html 
right_column_html <span style="font-size:10px">advertisement</span><div class="rcol_border rcol_size1" style="text-align:left;"><div style="padding:3px">Div for <br>arbitrary use: <br> - Information <br> - hints <br> - advertising??</div></div>
right_column_html <iframe class="rcol_size1" src="surgeweb/custom/right_column.htm"></iframe>

# Base URL for arbitrary help files
help_url http://netwinsite.com/surgeweb/help
help_to_sm ../../../surgemail/help

# URL to go to on logout
logout_url 

# Require the use of HTTPS to secure the surgeweb channel for security
https_required

# pref_spellcheck_language
pref_spellcheck_language en_GB

# Spam ratings:
rating_probable 6
rating_certain 10
#spam_hide_advanced true

# Log imap / smtp debug log file sizes (default = 2000000)
#log_size 20000000

# Login page links etc
#showlink_forget_pass true
#showlink_create_account true
#showlink_login_help true
#login_help_link http://myserver.com/myhelp/pages.htm


# autocomplete_max Use to increase the number of autocompletion entries
#autocomplete_max 15

# ********************************************
# Testing & development settings : DO NOT USE
# ********************************************

defs_variable from system defs
a_parameter defs_system.dat


right_column_width 120

pref_extra_headers Resent-From

contact_groups Friends,Family,Colleagues
contact_favorite Favorites

pref_abook_personal true
pref_abook_shared true
pref_abook_webmail true
pref_abook_webmail_groups true

import_webmail auto

# Display flags for toolbar button customisation
pref_toolbar_buttons *0*00*0010000

pref_folder_move_1 Done
pref_folder_move_2 Personal
pref_folder_move_5 Spam
pref_folder_move_6 Trash

# How to display the domain on the login page [valid: hide | show | select(UNIMPLEMENTED)]
login_domain show
login_crossdomain disabled

top_n_favorites 20

# *unsupported_browser* Action to take if someone tries to log in using a browser that "failed the supported browser test" [valid: allow | basic | webmail | deny ]
unsupported_browser allow


#iconv_ascii2iso true
#iconv_translit true
#iconv_ilseq true

pref_search_default single
pref_search_type quick

#always_show_quota true

# Try send as text but switch to html as required
pref_send_mode auto

#catch_errors_disable true
#mobile_custom_banner true

new_spam_train true

pref_rrcpt_local never
pref_rrcpt_whitelist never
pref_rrcpt_unknown never

pref_show_snippets never
pref_snippet_lines 2

#snippets_disable true

backoff_period 300

folder_column_minwidth 100

#rcol_login Some text
#  or 
#rcol_login iframe
#rcol_login_url surgeweb/custom/right_column.htm

surgevault_reply true
#help_add_domain true

#disable_login_autocomplete true
#imap_namespace INBOX.

#pref_editor_textonly yes
#global_nohide true

# do not edit these!
system_hints 01,02,03,04,05,06,07
system_hints_shown 0
custom_hints_shown 0

# System hints are defined in lang.dat. To disable individual system hints, suitably populate the following setting
#all_hints_disable true
#system_hints_disable 01,02,05
# Enable custom hints, also need suitable strings defined in your surgeweb/custom/lang.dat file. For examples see surgeweb/tpl/lang.dat
#custom_hints_show 01,02

# Automatic logout on idle. Duration, and enforcement customisable using settings as below
pref_autologout_type off
autologout_duration 45
autologout_enforced false

# Allow raw html popup to get fully washed too
#raw_html_fullwash true

# Disabling of the the "extras" user cgi functionality, a comma separated combination of [all|legal|notify|lists|import|alias]
# eg "all" or "import|alias"
#extras_disable all,legal,notify,lists,import,alias

# Multiple accounts and identity related settings
#labels_force_allow true
#hide_identities true

# Enable the multiple signature handling
multisig_enable true

#emoticons_disable true
#sim_enable true
#xol_connect true
#right_column custom
#right_column_html <iframe id="rcol" class="rcol_size1" src="surgeweb/ajax/yio.htm" frameborder="0" style="background:white"></iframe>
#no_spam_panel true

#use_imap_realip true
help_context true

# *pref_cal_timezone* default calendar timezone
#pref_cal_timezone America/New_York

# *newcal_hide* Whether to hide / show the new surgeweb caldav calendar interface
#newcal_hide true

# *pref_pin_star* Keep starred messages pinned to the top of the list for easy finding
#pref_pin_star true

# *filters_disable* Ability to remove the new user cgi filering rules feature
#filters_disable true

#widenew_disable true
#defer_disable true

#pref_pickmenu_create true

context_disable true

# *pref_purge_confirm* Type of purge confirmation  [valid: never | trash | both]
pref_purge_confirm trash
# *markread_onopen* marks message as read on open (instead of the normal mark read on preview)
#markread_onopen true

# *external_login* The server that your external login url should resolve to, to connect to surgeweb
external_login myserver.com

# *quota_check_disable* Completely disable the imap server quota check (useful is surgewalled to server not supporting quotas)
#quota_check_disable true

#keep_oldnotes true

# *footer_shrink* Hide the footer if the browser usable screen height
footer_shrink 850

# *basic_disable* Disable the basic html interface
#basic_disable true

# *adaptive_viewport_disable* Disable the small screen adaptive viewport sizing
#adaptive_viewport_disable true


# *access_by_ip* Specify the ip ranges which access to surgeweb is allowed from eg "*,!1.2.3.4-8" or "1.2.3.4-8"
#access_by_ip *,!1.2.3.4-8

# *deny_by_country* Deny all access to surgeweb from these countries. May be set in config_global.dat or config_domain.dat. eg "ru,jp"
#deny_by_country ru,jp

# *restrict_to_country* Restrict access to only these countries. May be set per user in _user.dat, or any config_*.dat file. eg "*,!ru,!jp" or "nz,us"
#restrict_to_country nz

