Sfoglia il codice sorgente

Get Flagged buttons value. So far, Mark was really Deleting, since it's the default action. IMHO should really test on delete button before deleting.

alex-brainstorm 21 anni fa
parent
commit
1476c95433
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/move_messages.php

+ 2 - 1
src/move_messages.php

@@ -57,7 +57,6 @@ function attachSelectedMessages($msg, $imapConnection) {
         $body_a = sqimap_run_command($imapConnection, "FETCH $id RFC822", true, $response, $readmessage, $uid_support);
         $body_a = sqimap_run_command($imapConnection, "FETCH $id RFC822", true, $response, $readmessage, $uid_support);
 
 
         if ($response == 'OK') {
         if ($response == 'OK') {
-
             // fetch the subject for the message with $id from msgs.
             // fetch the subject for the message with $id from msgs.
             // is there a more efficient way to do this?
             // is there a more efficient way to do this?
             foreach($msgs as $k => $vals) {
             foreach($msgs as $k => $vals) {
@@ -113,6 +112,8 @@ sqgetGlobalVar('expungeButton',   $expungeButton,   SQ_POST);
 sqgetGlobalVar('undeleteButton',  $undeleteButton,  SQ_POST);
 sqgetGlobalVar('undeleteButton',  $undeleteButton,  SQ_POST);
 sqgetGlobalVar('markRead',        $markRead,        SQ_POST);
 sqgetGlobalVar('markRead',        $markRead,        SQ_POST);
 sqgetGlobalVar('markUnread',      $markUnread,      SQ_POST);
 sqgetGlobalVar('markUnread',      $markUnread,      SQ_POST);
+sqgetGlobalVar('markFlagged',     $markFlagged,     SQ_POST);
+sqgetGlobalVar('markUnflagged',   $markUnflagged,   SQ_POST);
 sqgetGlobalVar('attache',         $attache,         SQ_POST);
 sqgetGlobalVar('attache',         $attache,         SQ_POST);
 sqgetGlobalVar('location',        $location,        SQ_POST);
 sqgetGlobalVar('location',        $location,        SQ_POST);
 sqgetGlobalVar('bypass_trash',    $bypass_trash,    SQ_POST);
 sqgetGlobalVar('bypass_trash',    $bypass_trash,    SQ_POST);