From c833ed4053106c9df58b84a441cc4509cda45a38 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 06 May 2010 05:57:39 -0400
Subject: [PATCH] - Fix listupdate event doesn't trigger on search response (#1486708)

---
 program/steps/mail/mark.inc |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/program/steps/mail/mark.inc b/program/steps/mail/mark.inc
index 1a2838c..ae8f0e3 100644
--- a/program/steps/mail/mark.inc
+++ b/program/steps/mail/mark.inc
@@ -42,7 +42,7 @@
   }
 
   $marked = $IMAP->set_flag($uids, $flag);
-  
+
   if ($marked == -1) {
     // send error message
     if ($_POST['_from'] != 'show')
@@ -55,7 +55,7 @@
   if ($flag == 'DELETED' && $CONFIG['read_when_deleted'] && !empty($_POST['_ruid'])) {
     $ruids = get_input_value('_ruid', RCUBE_INPUT_POST);
     $read = $IMAP->set_flag($ruids, 'SEEN');
-    
+
     if ($read != -1 && !$CONFIG['skip_deleted'])
       $OUTPUT->command('flag_deleted_as_read', $ruids);
   }
@@ -110,17 +110,17 @@
       if ($count && $uids != '*' && ($jump_back || $nextpage_count > 0)) {
         $sort_col   = isset($_SESSION['sort_col'])   ? $_SESSION['sort_col']   : $CONFIG['message_sort_col'];
         $sort_order = isset($_SESSION['sort_order']) ? $_SESSION['sort_order'] : $CONFIG['message_sort_order'];
-  
+
         $a_headers = $IMAP->list_headers($mbox, NULL, $sort_col, $sort_order,
 	    $jump_back ? NULL : $count);
-      
+
         rcmail_js_message_list($a_headers, false, false);
       }
     }
   }
-  
+
   $OUTPUT->send();
 }
-  
+
 exit;
 ?>

--
Gitblit v1.9.1