'never_display'=>lang('never display html emails'),
'only_if_no_text'=>lang('display only when no plain text is available'),
'always_display'=>lang('always show html emails'),
);
$rowOrderStyle=array(
'felamimail'=>lang('FeLaMiMail'),
'outlook'=>'Outlook',
);
// otherwise we get warnings during setup
if(!is_array($folderList))$folderList=array();
$trashOptions=array_merge(
array(
'none'=>lang("Don't use Trash")
),
$folderList
);
$sentOptions=array_merge(
array(
'none'=>lang("Don't use Sent")
),
$folderList
);
$draftOptions=array_merge(
array(
'none'=>lang("Don't use draft folder")
),
$folderList
);
$templateOptions=array_merge(
array(
'none'=>lang("Don't use template folder")
),
$folderList
);
// modify folderlist, add a none entry, to be able to force the regarding settings, if no folders apply
$folderList['none']=lang('no folders');
/* Settings array for this app */
returnarray(
'refreshTime'=>array(
'type'=>'select',
'label'=>'Refresh time in minutes',
'name'=>'refreshTime',
'values'=>$refreshTime,
'xmlrpc'=>True,
'admin'=>False,
'forced'=>5,
),
'prefaskformove'=>array(
'type'=>'select',
'label'=>'Do you want to be asked for confirmation before moving selected messages to another folder?',
'name'=>'prefaskformove',
'values'=>$no_yes_copy,
'xmlrpc'=>True,
'admin'=>False,
'forced'=>'1',
),
'prefaskformultipleforward'=>array(
'type'=>'select',
'label'=>'Do you want to be asked for confirmation before attaching selected messages to new mail?',
'name'=>'prefaskformultipleforward',
'values'=>$no_yes,
'xmlrpc'=>True,
'admin'=>False,
'forced'=>'1',
),
'prefpreventmanagefolders'=>array(
'type'=>'select',
'label'=>'Do you want to prevent the managing of folders (creation, accessrights AND subscribtion)?',
'name'=>'prefpreventmanagefolders',
'values'=>$prefAllowManageFolders,
'xmlrpc'=>True,
'admin'=>False,
'forced'=>'0',
),
'prefpreventforwarding'=>array(
'type'=>'select',
'label'=>'Do you want to prevent the editing/setup for forwarding of mails via settings (, even if SIEVE is enabled)?',
'name'=>'prefpreventforwarding',
'values'=>$no_yes,
'xmlrpc'=>True,
'admin'=>False,
'forced'=>'0',
),
'prefpreventnotificationformailviaemail'=>array(
'type'=>'select',
'label'=>'Do you want to prevent the editing/setup of notification by mail to other emailadresses if emails arrive (, even if SIEVE is enabled)?',
'name'=>'prefpreventnotificationformailviaemail',
'values'=>$no_yes,
'xmlrpc'=>True,
'admin'=>False,
'forced'=>'1',
),
'prefpreventeditfilterrules'=>array(
'type'=>'select',
'label'=>'Do you want to prevent the editing/setup of filter rules (, even if SIEVE is enabled)?',
'name'=>'prefpreventeditfilterrules',
'values'=>$no_yes,
'xmlrpc'=>True,
'admin'=>False,
'forced'=>'0',
),
'prefpreventabsentnotice'=>array(
'type'=>'select',
'label'=>'Do you want to prevent the editing/setup of the absent/vacation notice (, even if SIEVE is enabled)?',
'name'=>'prefpreventabsentnotice',
'values'=>$no_yes,
'xmlrpc'=>True,
'admin'=>False,
'forced'=>'0',
),
'notavailableautofolders'=>array(
'type'=>'multiselect',
'label'=>'which folders - in general - should NOT be automatically created, if not existing',
'name'=>'notavailableautofolders',
'values'=>$availableAutoFolders,
'xmlrpc'=>True,
'admin'=>False,
'forced'=>'none',
),
'sortOrder'=>array(
'type'=>'select',
'label'=>'Default sorting order',
'name'=>'sortOrder',
'values'=>$sortOrder,
'xmlrpc'=>True,
'admin'=>False,
'default'=>'0',// newest first
),
'rowOrderStyle'=>array(
'type'=>'select',
'label'=>'row order style',
'name'=>'rowOrderStyle',
'values'=>$rowOrderStyle,
'xmlrpc'=>True,
'admin'=>False,
'default'=>'felamimail',
),
'prefMailGridBehavior'=>array(
'type'=>'select',
'label'=>'Mail Grid Behavior: how many messages should the mailgrid load? If you select all messages there will be no pagination for mail message list. (Beware, as some actions on all selected messages may be problematic depending on the amount of selected messages.)',
'name'=>'prefMailGridBehavior',
'values'=>$gridViewBehavior,
'xmlrpc'=>True,
'admin'=>False,
'default'=>50,
),
'PreViewFrameHeight'=>array(
'type'=>'input',
'label'=>'3PaneView: If you want to see a preview of a mail by single clicking onto the subject, set the height for the message-list and the preview area here (300 seems to be a good working value). The preview will be displayed at the end of the message list on demand (click).',
'name'=>'PreViewFrameHeight',
'xmlrpc'=>True,
'admin'=>False,
'forced'=>'300',
),
'message_forwarding'=>array(
'type'=>'select',
'label'=>'how to forward messages',
'name'=>'message_forwarding',
'values'=>$forwardOptions,
'xmlrpc'=>True,
'admin'=>False,
'default'=>'asmail',
),
'mainscreen_showmail'=>array(
'type'=>'select',
'label'=>'show new messages on main screen',
'name'=>'mainscreen_showmail',
'values'=>$selectOptions,
'xmlrpc'=>True,
'admin'=>False,
),
'mainscreen_showfolders'=>array(
'type'=>'multiselect',
'label'=>'if shown, which folders should appear on main screen',
'name'=>'mainscreen_showfolders',
'values'=>$folderList,
'xmlrpc'=>True,
'admin'=>False,
),
'messages_showassent_0'=>array(
'type'=>'multiselect',
'label'=>'which folders (additional to the Sent Folder) should be displayed using the Sent Folder View Schema',
'name'=>'messages_showassent_0',
'values'=>$folderList,
'xmlrpc'=>True,
'admin'=>False,
'forced'=>'none',
),
'notify_folders'=>array(
'type'=>'multiselect',
'label'=>'notify when new mails arrive on these folders',
'label'=>'start new messages with mime type plain/text or html?',
'name'=>'composeOptions',
'values'=>$composeOptions,
'xmlrpc'=>True,
'admin'=>False,
'default'=>'html',
),
'htmlOptions'=>array(
'type'=>'select',
'label'=>'display of html emails',
'name'=>'htmlOptions',
'values'=>$htmlOptions,
'xmlrpc'=>True,
'admin'=>False,
'forced'=>'only_if_no_text',
),
'allowExternalIMGs'=>array(
'type'=>'check',
'label'=>'allow images from external sources in html emails',
'name'=>'allowExternalIMGs',
'xmlrpc'=>True,
'admin'=>True,
'forced'=>true,
),
'trashFolder'=>array(
'type'=>'select',
'label'=>'trash folder',
'name'=>'trashFolder',
'values'=>$trashOptions,
'xmlrpc'=>True,
'admin'=>False,
),
'sentFolder'=>array(
'type'=>'select',
'label'=>'sent folder',
'name'=>'sentFolder',
'values'=>$sentOptions,
'xmlrpc'=>True,
'admin'=>False,
),
'draftFolder'=>array(
'type'=>'select',
'label'=>'draft folder',
'name'=>'draftFolder',
'values'=>$draftOptions,
'xmlrpc'=>True,
'admin'=>False,
),
'templateFolder'=>array(
'type'=>'select',
'label'=>'template folder',
'name'=>'templateFolder',
'values'=>$templateOptions,
'xmlrpc'=>True,
'admin'=>False,
),
'trustServersUnseenInfo'=>array(
'type'=>'select',
'label'=>'trust servers SEEN / UNSEEN info when retrieving the folder status. (if you select no, we will search for the UNSEEN messages and count them ourselves)',
'name'=>'trustServersUnseenInfo',
'values'=>$no_yes,
'xmlrpc'=>True,
'default'=>1,
'admin'=>False,
),
'showAllFoldersInFolderPane'=>array(
'type'=>'select',
'label'=>'show all Folders (subscribed AND unsubscribed) in Main Screen Folder Pane',
'name'=>'showAllFoldersInFolderPane',
'values'=>$no_yes,
'xmlrpc'=>True,
'default'=>0,
'admin'=>False,
),
'disableRulerForSignatureSeparation'=>array(
'type'=>'select',
'label'=>'disable Ruler for separation of mailbody and signature when adding signature to composed message (this is not according to RFC).<br>If you use templates, this option is only applied to the text part of the message.',
'name'=>'disableRulerForSignatureSeparation',
'values'=>$no_yes,
'xmlrpc'=>True,
'default'=>0,
'admin'=>False,
),
'insertSignatureAtTopOfMessage'=>array(
'type'=>'select',
'label'=>'insert the signature at top of the new (or reply) message when opening compose dialog (you may not be able to switch signatures)',