Impostazione preferenze di default in Horde
Jump to navigation
Jump to search
cd /var/www/horde/imp/config
sudoedit prefs.local.php
<?php
$_prefs['delete_attachments_monthly_keep'] = array(
'value' => 0,
'advanced' => true,
'type' => 'number',
'zero' => true,
'desc' => _("Delete linked attachments after this many months (0 to never delete):"),
'help' => 'prefs-delete_attachments_monthly_keep',
'suppress' => function() {
return empty($GLOBALS['conf']['compose']['link_attachments']);
}
);
$_prefs['delete_mark_seen'] = array(
'value' => 1,
'advanced' => true,
'type' => 'checkbox',
'desc' => _("Mark messages as seen when deleting?")
);
$_prefs['use_trash'] = array(
'value' => 1,
'type' => 'checkbox',
'desc' => _("Move deleted messages to your Trash mailbox instead of marking them as deleted in the current mailbox?"),
'on_change' => function() {
$GLOBALS['injector']->getInstance('IMP_Mailbox_SessionCache')
->expire(IMP_Mailbox_SessionCache::CACHE_SPECIALMBOXES);
if ($GLOBALS['prefs']->getValue('use_trash') &&
!$GLOBALS['prefs']->getValue('trash_folder')) {
$GLOBALS['notification']->push(_("You have activated move to Trash but no Trash mailbox is defined. You will be unable to delete messages until you set a Trash mailbox in the preferences."), 'horde.warning');
}
}
);