alecpl
2009-06-05 119cd17abf74bd98afec2979c4ac4a89af1f0ca7
- add 'Deleted' to search filter


8 files modified
15 ■■■■ changed files
config/main.inc.php.dist 5 ●●●●● patch | view | raw | blame | history
program/localization/en_GB/labels.inc 1 ●●●● patch | view | raw | blame | history
program/localization/en_GB/messages.inc 1 ●●●● patch | view | raw | blame | history
program/localization/en_US/labels.inc 1 ●●●● patch | view | raw | blame | history
program/localization/en_US/messages.inc 1 ●●●● patch | view | raw | blame | history
program/localization/pl_PL/labels.inc 1 ●●●● patch | view | raw | blame | history
program/localization/pl_PL/messages.inc 1 ●●●● patch | view | raw | blame | history
program/steps/mail/func.inc 4 ●●● patch | view | raw | blame | history
config/main.inc.php.dist
@@ -413,9 +413,8 @@
// False means that a message's read status is not affected by marking it as deleted
$rcmail_config['read_when_deleted'] = TRUE;
// When a Trash folder is not present and a message is deleted, flag
// the message for deletion rather than deleting it immediately.  Setting this to
// false causes deleted messages to be permanantly removed if there is no Trash folder
// Set to TRUE to newer delete messages immediately
// Use 'Purge' to remove messages marked as deleted
$rcmail_config['flag_for_deletion'] = FALSE;
// Default interval for keep-alive/check-recent requests (in seconds)
program/localization/en_GB/labels.inc
@@ -122,6 +122,7 @@
$labels['unread'] = 'Unread';
$labels['flagged'] = 'Flagged';
$labels['unanswered'] = 'Unanswered';
$labels['deleted'] = 'Deleted';
$labels['invert'] = 'Invert';
$labels['filter'] = 'Filter';
$labels['compact'] = 'Compact';
program/localization/en_GB/messages.inc
@@ -46,6 +46,7 @@
$messages['errorsaving'] = 'An error occurred while saving';
$messages['errormoving'] = 'Could not move the message';
$messages['errordeleting'] = 'Could not delete the message';
$messages['errormarking'] = 'Could not mark the message';
$messages['deletecontactconfirm'] = 'Do you really want to delete the selected contact(s)?';
$messages['deletemessagesconfirm'] = 'Do you really want to delete the selected message(s)?';
$messages['deletefolderconfirm'] = 'Do you really want to delete this folder?';
program/localization/en_US/labels.inc
@@ -150,6 +150,7 @@
$labels['unread'] = 'Unread';
$labels['flagged'] = 'Flagged';
$labels['unanswered'] = 'Unanswered';
$labels['deleted'] = 'Deleted';
$labels['invert'] = 'Invert';
$labels['filter'] = 'Filter';
program/localization/en_US/messages.inc
@@ -46,6 +46,7 @@
$messages['errorsaving'] = 'An error occured while saving';
$messages['errormoving'] = 'Could not move the message';
$messages['errordeleting'] = 'Could not delete the message';
$messages['errormarking'] = 'Could not mark the message';
$messages['deletecontactconfirm']  = 'Do you really want to delete the selected contact(s)?';
$messages['deletemessagesconfirm'] = 'Do you really want to delete the selected message(s)?';
$messages['deletefolderconfirm']  = 'Do you really want to delete this folder?';
program/localization/pl_PL/labels.inc
@@ -134,6 +134,7 @@
$labels['unread'] = 'Nieprzeczytane';
$labels['flagged'] = 'Oznaczone';
$labels['unanswered'] = 'Bez odpowiedzi';
$labels['deleted'] = 'Usunięte';
$labels['invert'] = 'Odwróć';
$labels['filter'] = 'Filtr';
$labels['compact'] = 'Porządkuj';
program/localization/pl_PL/messages.inc
@@ -51,6 +51,7 @@
$messages['errorsaving'] = 'Wystąpił błąd podczas zapisu!';
$messages['errormoving'] = 'Nie można przenieść wybranej wiadomości!';
$messages['errordeleting'] = 'Nie można usunąć wiadomości!';
$messages['errormarking'] = 'Nie można oznaczyć wiadomości!';
$messages['deletecontactconfirm'] = 'Czy na pewno chcesz usunąć wybrane kontakty?';
$messages['deletemessagesconfirm'] = 'Czy na pewno chcesz usunąć wybrane wiadomości?';
$messages['deletefolderconfirm'] = 'Czy na pewno chcesz usunąć wybrany folder?';
program/steps/mail/func.inc
@@ -1446,7 +1446,7 @@
function rcmail_search_filter($attrib)
{
  global $OUTPUT;
  global $OUTPUT, $CONFIG;
  if (!strlen($attrib['id']))
    $attrib['id'] = 'rcmlistfilter';
@@ -1466,6 +1466,8 @@
  $select_filter->add(rcube_label('unread'), 'UNSEEN');
  $select_filter->add(rcube_label('flagged'), 'FLAGGED');
  $select_filter->add(rcube_label('unanswered'), 'UNANSWERED');
  if (!$CONFIG['skip_deleted'])
    $select_filter->add(rcube_label('deleted'), 'DELETED');
  $out = $select_filter->show($_SESSION['search_filter']);