[Svn] r1931 - in trunk/roundcubemail: . program/localization/en_US program/localization/pl_PL program/steps/settings

trac at roundcube.net trac at roundcube.net
Fri Oct 3 15:09:25 CEST 2008


Author: alec
Date: 2008-10-03 08:09:25 -0500 (Fri, 03 Oct 2008)
New Revision: 1931

Modified:
   trunk/roundcubemail/CHANGELOG
   trunk/roundcubemail/program/localization/en_US/labels.inc
   trunk/roundcubemail/program/localization/pl_PL/labels.inc
   trunk/roundcubemail/program/steps/settings/func.inc
   trunk/roundcubemail/program/steps/settings/save_prefs.inc
Log:
- Add 'skip_deleted' option in User Preferences (#1485445)


Modified: trunk/roundcubemail/CHANGELOG
===================================================================
--- trunk/roundcubemail/CHANGELOG	2008-10-03 08:31:24 UTC (rev 1930)
+++ trunk/roundcubemail/CHANGELOG	2008-10-03 13:09:25 UTC (rev 1931)
@@ -2,8 +2,10 @@
 ---------------------------
 
 2008/10/03 (alec)
+----------
 - Add support for SJIS, GB2312, BIG5 in rc_detect_encoding()
 - Fix vCard file encoding detection for non-UTF-8 strings (#1485410)
+- Add 'skip_deleted' option in User Preferences (#1485445)
 
 2008/10/02 (alec)
 ----------

Modified: trunk/roundcubemail/program/localization/en_US/labels.inc
===================================================================
--- trunk/roundcubemail/program/localization/en_US/labels.inc	2008-10-03 08:31:24 UTC (rev 1930)
+++ trunk/roundcubemail/program/localization/en_US/labels.inc	2008-10-03 13:09:25 UTC (rev 1931)
@@ -278,6 +278,7 @@
 $labels['ignore'] = 'ignore';
 $labels['readwhendeleted'] = 'Mark the message as read on delete';
 $labels['flagfordeletion'] = 'Flag the message for deletion instead of delete';
+$labels['skipdeleted'] = 'Do not show deleted messages';
 $labels['showinlineimages'] = 'Display attached images below the message';
 $labels['autosavedraft']  = 'Automatically save draft';
 $labels['everynminutes']  = 'every $n minutes';

Modified: trunk/roundcubemail/program/localization/pl_PL/labels.inc
===================================================================
--- trunk/roundcubemail/program/localization/pl_PL/labels.inc	2008-10-03 08:31:24 UTC (rev 1930)
+++ trunk/roundcubemail/program/localization/pl_PL/labels.inc	2008-10-03 13:09:25 UTC (rev 1931)
@@ -227,6 +227,7 @@
 $labels['advancedoptions'] = 'opcje zaawansowane';
 $labels['readwhendeleted'] = 'Podczas usuwania oznacz wiadomość jako przeczytaną';
 $labels['flagfordeletion'] = 'Oznacz wiadomość do usunięcia zamiast ją usuwać';
+$labels['skipdeleted'] = 'Ukryj wiadomości oznaczone do usunięcia';
 $labels['autosavedraft'] = 'Automatyczny zapis tworzonej wiadomości';
 $labels['everynminutes'] = 'co $n minut';
 $labels['never'] = 'nigdy';

Modified: trunk/roundcubemail/program/steps/settings/func.inc
===================================================================
--- trunk/roundcubemail/program/steps/settings/func.inc	2008-10-03 08:31:24 UTC (rev 1930)
+++ trunk/roundcubemail/program/steps/settings/func.inc	2008-10-03 13:09:25 UTC (rev 1931)
@@ -285,7 +285,16 @@
     $table->add('title', html::label($field_id, Q(rcube_label('flagfordeletion'))));
     $table->add(null, $input_flagfordeletion->show($config['flag_for_deletion']?1:0));
   }
-
+  
+  // don't show deleted messages
+  if (!isset($no_override['skip_deleted'])) {
+    $field_id = 'rcmfd_skip_deleted';
+    $input_purge = new html_checkbox(array('name' => '_skip_deleted', 'id' => $field_id, 'value' => 1));
+    
+    $table->add('title', html::label($field_id, Q(rcube_label('skipdeleted'))));
+    $table->add(null, $input_purge->show($config['skip_deleted']?1:0));
+  }
+  
   // Trash purging on logout
   if (!isset($no_override['logout_purge'])) {
     $field_id = 'rcmfd_logout_purge';
@@ -294,7 +303,7 @@
     $table->add('title', html::label($field_id, Q(rcube_label('logoutclear'))));
     $table->add(null, $input_purge->show($config['logout_purge']?1:0));
   }
-
+  
   // INBOX compacting on logout
   if (!isset($no_override['logout_expunge'])) {
     $field_id = 'rcmfd_logout_expunge';

Modified: trunk/roundcubemail/program/steps/settings/save_prefs.inc
===================================================================
--- trunk/roundcubemail/program/steps/settings/save_prefs.inc	2008-10-03 08:31:24 UTC (rev 1930)
+++ trunk/roundcubemail/program/steps/settings/save_prefs.inc	2008-10-03 13:09:25 UTC (rev 1931)
@@ -31,6 +31,7 @@
   'inline_images'   => isset($_POST['_inline_images']) ? TRUE : FALSE,
   'preview_pane' => isset($_POST['_preview_pane']) ? TRUE : FALSE,
   'read_when_deleted' => isset($_POST['_read_when_deleted']) ? TRUE : FALSE,
+  'skip_deleted' => isset($_POST['_skip_deleted']) ? TRUE : FALSE,
   'flag_for_deletion' => isset($_POST['_flag_for_deletion']) ? TRUE : FALSE,
   'logout_purge' => isset($_POST['_logout_purge']) ? TRUE : FALSE,
   'logout_expunge' => isset($_POST['_logout_expunge']) ? TRUE : FALSE,

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn


More information about the Svn mailing list