'outlook_wCB'=>'Outlook'.' '.($toggle?lang('(select mails by clicking on the line, like a checkbox)'):lang('(with checkbox enforced)')),
);
// 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 */
$settingsArray=array(
array(
'type'=>'section',
'title'=>lang('Mail settings'),
'no_lang'=>true,
'xmlrpc'=>False,
'admin'=>False
),
'message_forwarding'=>array(
'type'=>'select',
'label'=>'how to forward messages',
'help'=>'Which method to use when forwarding a message',
'name'=>'message_forwarding',
'values'=>$forwardOptions,
'xmlrpc'=>True,
'admin'=>False,
'default'=>'asmail',
),
'composeOptions'=>array(
'type'=>'select',
'label'=>'New message type',
'help'=>'start new messages with mime type plain/text or html?',
'name'=>'composeOptions',
'values'=>$composeOptions,
'xmlrpc'=>True,
'admin'=>False,
'default'=>'html',
),
'replyOptions'=>array(
'type'=>'select',
'label'=>'Reply message type',
'help'=>'start reply messages with mime type plain/text or html or try to use the displayed format (default)?',
'name'=>'replyOptions',
'values'=>$replyOptions,
'xmlrpc'=>True,
'admin'=>False,
'default'=>'none',
),
'disableRulerForSignatureSeparation'=>array(
'type'=>'select',
'label'=>'disable Ruler for separation of mailbody and signature',
'help'=>'Turn off horizontal line between signature and 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'=>'signature at top',
'help'=>'insert the signature at top of the new (or reply) message when opening compose dialog (you may not be able to switch signatures)',
'name'=>'insertSignatureAtTopOfMessage',
'values'=>$no_yes,
'xmlrpc'=>True,
'default'=>0,
'admin'=>False,
),
'attachVCardAtCompose'=>array(
'type'=>'select',
'label'=>'Attach vCard',
'help'=>'attach users VCard at compose to every new mail',
'name'=>'attachVCardAtCompose',
'values'=>$no_yes,
'xmlrpc'=>True,
'default'=>0,
'admin'=>False,
),
array(
'type'=>'section',
'title'=>lang('General settings'),
'no_lang'=>true,
'xmlrpc'=>False,
'admin'=>False
),
'refreshTime'=>array(
'type'=>'select',
'label'=>'Refresh time in minutes',
'help'=>'How often to check with the server for new mail',
'name'=>'refreshTime',
'values'=>$refreshTime,
'xmlrpc'=>True,
'admin'=>False,
'forced'=>5,
),
'htmlOptions'=>array(
'type'=>'select',
'label'=>'display of html emails',
'help'=>'What do do with html email',
'name'=>'htmlOptions',
'values'=>$htmlOptions,
'xmlrpc'=>True,
'admin'=>False,
'forced'=>'always_display',
),
'message_newwindow'=>array(
'type'=>'select',
'label'=>'display messages in multiple windows',
'help'=>'When displaying messages in a popup, re-use the same popup for all or open a new popup for each message',
'name'=>'message_newwindow',
'values'=>$newWindowOptions,
'xmlrpc'=>True,
'admin'=>False,
'forced'=>'1',
),
'allowExternalIMGs'=>array(
'type'=>'check',
'label'=>'Allow external images',
'help'=>'allow images from external sources in html emails',
'label'=>'how many messages should the mail list load',
'help'=>'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.',
'help'=>'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'=>'Confirm attach message',
'help'=>'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',
),
'mainscreen_showmail'=>array(
'type'=>'select',
'label'=>'show new messages on home page',
'help'=>'Should new messages show up on the Home page',
'name'=>'mainscreen_showmail',
'values'=>$selectOptions,
'xmlrpc'=>True,
'admin'=>False,
),
'mainscreen_showfolders'=>array(
'type'=>'multiselect',
'label'=>'home page folders',
'help'=>'if shown, which folders should appear on the Home page',
'name'=>'mainscreen_showfolders',
'values'=>$folderList,
'xmlrpc'=>True,
'admin'=>False,
),
'notify_folders'=>array(
'type'=>'multiselect',
'label'=>'New mail notification',
'help'=>'notify when new mails arrive in these folders',
'name'=>'notify_folders',
'values'=>$folderList,
'xmlrpc'=>True,
'admin'=>False,
),
array(
'type'=>'section',
'title'=>lang('Folder settings'),
'no_lang'=>true,
'xmlrpc'=>False,
'admin'=>False
),
'trashFolder'=>array(
'type'=>'select',
'label'=>lang('trash folder'),
'help'=>(isset($trashFolder)&&!empty($trashFolder)?lang('The folder <b>%1</b> will be used, if there is nothing set here, and no valid predefine given.',$trashFolder):''),
'name'=>'trashFolder',
'values'=>$trashOptions,
'xmlrpc'=>True,
'admin'=>False,
),
'sentFolder'=>array(
'type'=>'select',
'label'=>lang('sent folder'),
'help'=>(isset($sentFolder)&&!empty($sentFolder)?lang('The folder <b>%1</b> will be used, if there is nothing set here, and no valid predefine given.',$sentFolder):''),
'name'=>'sentFolder',
'values'=>$sentOptions,
'xmlrpc'=>True,
'admin'=>False,
),
'draftFolder'=>array(
'type'=>'select',
'label'=>lang('draft folder'),
'help'=>(isset($draftFolder)&&!empty($draftFolder)?lang('The folder <b>%1</b> will be used, if there is nothing set here, and no valid predefine given.',$draftFolder):''),
'name'=>'draftFolder',
'values'=>$draftOptions,
'xmlrpc'=>True,
'admin'=>False,
),
'templateFolder'=>array(
'type'=>'select',
'label'=>lang('template folder'),
'help'=>(isset($templateFolder)&&!empty($templateFolder)?lang('The folder <b>%1</b> will be used, if there is nothing set here, and no valid predefine given.',$templateFolder):''),
'name'=>'templateFolder',
'values'=>$templateOptions,
'xmlrpc'=>True,
'admin'=>False,
),
'deleteOptions'=>array(
'type'=>'select',
'label'=>'when deleting messages',
'help'=>'what to do when you delete a message',
'name'=>'deleteOptions',
'values'=>$deleteOptions,
'xmlrpc'=>True,
'admin'=>False,
'default'=>'move_to_trash',
),
'sendOptions'=>array(
'type'=>'select',
'label'=>'when sending messages',
'help'=>'what to do when you send a message',
'name'=>'sendOptions',
'values'=>$sendOptions,
'xmlrpc'=>True,
'admin'=>False,
'default'=>'move_to_sent',
),
'trustServersUnseenInfo'=>array(
'type'=>'select',
'label'=>'trust servers SEEN / UNSEEN info',
'help'=>'Trust the server when retrieving the folder status. if you select no, we will search for the UNSEEN messages and count them ourselves',
'name'=>'trustServersUnseenInfo',
'values'=>$trustServersUnseenOptions,
'xmlrpc'=>True,
'default'=>2,
'admin'=>False,
),
'showAllFoldersInFolderPane'=>array(
'type'=>'select',
'label'=>'show all Folders',
'help'=>'show all folders, (subscribed AND unsubscribed) in Main Screen Folder Pane',
'name'=>'showAllFoldersInFolderPane',
'values'=>$no_yes,
'xmlrpc'=>True,
'default'=>0,
'admin'=>False,
),
'messages_showassent_0'=>array(
'type'=>'multiselect',
'label'=>'Extra sent folders',
'help'=>'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',
),
array(
'type'=>'section',
'title'=>lang('Configuration settings'),
'no_lang'=>true,
'xmlrpc'=>False,
'admin'=>False
),
'prefpreventmanagefolders'=>array(
'type'=>'select',
'label'=>'Prevent managing folders',
'help'=>'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'=>'Prevent managing forwards',
'help'=>'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'=>'Prevent managing notifications',
'help'=>'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'=>'Prevent managing filters',
'help'=>'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'=>'Prevent managing vacation notice',
'help'=>'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',
),
'connectionTimeout'=>array(
'type'=>'select',
'label'=>'IMAP timeout',
'help'=>'Timeout on connections to your IMAP Server',