Browse Source

Sorry, copy paste didn't workout as it should.

stekkel 19 years ago
parent
commit
1d07c6751e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/compose.php

+ 3 - 3
src/compose.php

@@ -1672,13 +1672,13 @@ function deliverMessage($composeMessage, $draft=false) {
             $aMailbox = sqm_api_mailbox_select($imap_stream, $iAccount, $mailbox,array('setindex' => $what, 'offset' => $startMessage),array());
             //sqimap_mailbox_select ($imap_stream, $mailbox);
             $aUpdatedMsgs = sqimap_toggle_flag($imap_stream, array($passed_id), '\\Answered', true, false);
-             if (isset($aUpdatedMsgs[$iUid]['FLAGS'])) {
+             if (isset($aUpdatedMsgs[$passed_id]['FLAGS'])) {
                 /**
                  * Only update the cached headers if the header is
                  * cached.
                  */
-                if (isset($aMailbox['MSG_HEADERS'][$iUid])) {
-                    $aMailbox['MSG_HEADERS'][$iUid]['FLAGS'] = $aMsg['FLAGS'];
+                if (isset($aMailbox['MSG_HEADERS'][$passed_id])) {
+                    $aMailbox['MSG_HEADERS'][$passed_id]['FLAGS'] = $aMsg['FLAGS'];
                 }
             }
         }